moved users/willifan to home-manager module
This commit is contained in:
parent
2838549a4c
commit
184b0866d4
56 changed files with 243 additions and 276 deletions
|
@ -17,6 +17,7 @@
|
|||
|
||||
../../modules/common
|
||||
../../modules/server
|
||||
../../modules/home-manager
|
||||
|
||||
];
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
../../modules/common
|
||||
../../modules/desktop
|
||||
../../modules/home-manager
|
||||
];
|
||||
|
||||
common.syncthing = {
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
../../modules/common
|
||||
../../modules/desktop
|
||||
../../modules/home-manager
|
||||
|
||||
];
|
||||
}
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
../../modules/common
|
||||
../../modules/desktop
|
||||
../../modules/home-manager
|
||||
|
||||
];
|
||||
|
||||
|
|
|
@ -1,13 +1,20 @@
|
|||
{ hostname, ... }:
|
||||
{
|
||||
imports = [
|
||||
./nixvim
|
||||
|
||||
./autoupdate.nix
|
||||
./envvar.nix
|
||||
./garbage-collect.nix
|
||||
./keyd.nix
|
||||
./locales.nix
|
||||
./mimetype.nix
|
||||
./optimise.nix
|
||||
./packages.nix
|
||||
./sops.nix
|
||||
./stylix.nix
|
||||
./syncthing.nix
|
||||
./users.nix
|
||||
];
|
||||
|
||||
networking = {
|
||||
|
|
8
modules/common/packages.nix
Normal file
8
modules/common/packages.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{ pkgs, ...}:
|
||||
{
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
tealdeer
|
||||
];
|
||||
|
||||
}
|
33
modules/common/stylix.nix
Normal file
33
modules/common/stylix.nix
Normal file
|
@ -0,0 +1,33 @@
|
|||
{ pkgs, ... }:
|
||||
let
|
||||
wallpaper = pkgs.fetchurl {
|
||||
url = "https://files.huwe.mooo.com/Oneshot.png";
|
||||
hash = "sha256-LaIzLCW86sbldE9lk7psbYKaTCjwaPLcoD3il6FalTw=";
|
||||
};
|
||||
plymouth_logo = pkgs.fetchurl {
|
||||
url = "https://files.huwe.mooo.com/outlinenobackground.png";
|
||||
hash = "sha256-HdErySgSwNSPEHyBywLyZCAss4vUhsY8BvCPe5hST6Q=";
|
||||
};
|
||||
in
|
||||
{
|
||||
|
||||
stylix = {
|
||||
enable = true;
|
||||
|
||||
autoEnable = true;
|
||||
|
||||
base16Scheme = "${pkgs.base16-schemes}/share/themes/pasque.yaml";
|
||||
override = {
|
||||
base0D = "F3196E";
|
||||
base0F = "CFAACF";
|
||||
};
|
||||
|
||||
image = wallpaper;
|
||||
|
||||
polarity = "dark";
|
||||
|
||||
targets.plymouth.logo = plymouth_logo;
|
||||
|
||||
};
|
||||
|
||||
}
|
|
@ -1,9 +1,10 @@
|
|||
{ ... }:
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
users.users.willifan = {
|
||||
isNormalUser = true;
|
||||
description = "willifan";
|
||||
extraGroups = [ "networkmanager" "wheel" "syncthing" ];
|
||||
shell = pkgs.bash;
|
||||
};
|
||||
|
||||
}
|
16
modules/home-manager/default.nix
Normal file
16
modules/home-manager/default.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ ... }:
|
||||
{
|
||||
home-manager.users.willifan = {
|
||||
imports = [
|
||||
./shell
|
||||
./tmux
|
||||
./utils
|
||||
|
||||
./git.nix
|
||||
./stylix.nix
|
||||
];
|
||||
|
||||
home.stateVersion = "23.11";
|
||||
};
|
||||
|
||||
}
|
12
modules/home-manager/git.nix
Normal file
12
modules/home-manager/git.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
programs.git = {
|
||||
enable = true;
|
||||
package = pkgs.gitAndTools.gitFull;
|
||||
userName = "willifan";
|
||||
userEmail = "willifan@pm.me";
|
||||
extraConfig = {
|
||||
init.defaultBranch = "main";
|
||||
};
|
||||
};
|
||||
}
|
20
modules/home-manager/shell/bash.nix
Normal file
20
modules/home-manager/shell/bash.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ ... }:
|
||||
{
|
||||
|
||||
programs = {
|
||||
bash = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
ls = "eza";
|
||||
};
|
||||
};
|
||||
|
||||
starship = {
|
||||
enableBashIntegration = true;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
# programs.bash.blesh.enable = true;
|
||||
|
||||
}
|
|
@ -9,9 +9,7 @@
|
|||
./ssh.nix
|
||||
./starship.nix
|
||||
./zoxide.nix
|
||||
./zsh.nix
|
||||
];
|
||||
|
||||
users.users.willifan.shell = pkgs.bash;
|
||||
|
||||
}
|
8
modules/home-manager/shell/eza.nix
Normal file
8
modules/home-manager/shell/eza.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{ ... }:
|
||||
{
|
||||
|
||||
programs.eza = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
}
|
53
modules/home-manager/shell/hyfetch.nix
Normal file
53
modules/home-manager/shell/hyfetch.nix
Normal file
|
@ -0,0 +1,53 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
programs.hyfetch = {
|
||||
enable = true;
|
||||
settings = {
|
||||
preset = "transgender";
|
||||
mode = "rgb";
|
||||
light_dark = "dark";
|
||||
lightness = 0.69;
|
||||
color_align = {
|
||||
mode = "horizontal";
|
||||
custom_colors = [];
|
||||
fore_back = null;
|
||||
};
|
||||
backend = "fastfetch";
|
||||
args = null;
|
||||
distro = null;
|
||||
pride_month_shown = [];
|
||||
pride_month_disable = false;
|
||||
};
|
||||
};
|
||||
programs.fastfetch = {
|
||||
enable = true;
|
||||
settings = {
|
||||
modules = [
|
||||
"title"
|
||||
"separator"
|
||||
"os"
|
||||
"host"
|
||||
{
|
||||
type = "localip";
|
||||
showIpv6 = false;
|
||||
showMac = false;
|
||||
showSpeed = false;
|
||||
showMtu = false;
|
||||
showLoop = false;
|
||||
showFlags = false;
|
||||
}
|
||||
"kernel"
|
||||
"uptime"
|
||||
"packages"
|
||||
"shell"
|
||||
"wm"
|
||||
"cpu"
|
||||
"gpu"
|
||||
"memory"
|
||||
"break"
|
||||
"colors"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
13
modules/home-manager/shell/nushell.nix
Normal file
13
modules/home-manager/shell/nushell.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{ ... }:
|
||||
{
|
||||
|
||||
programs = {
|
||||
nushell = {
|
||||
enable = true;
|
||||
};
|
||||
starship = {
|
||||
enableNushellIntegration = true;
|
||||
};
|
||||
};
|
||||
|
||||
}
|
|
@ -1,4 +1,3 @@
|
|||
{ ... }:
|
||||
{
|
||||
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
{ lib, config, ... }:
|
||||
{
|
||||
|
||||
home-manager.users.willifan.programs.starship = {
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
settings = {
|
||||
format = lib.concatStrings [
|
11
modules/home-manager/shell/zoxide.nix
Normal file
11
modules/home-manager/shell/zoxide.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{ ... }:
|
||||
{
|
||||
|
||||
programs.zoxide = {
|
||||
enable = true;
|
||||
options = [
|
||||
"--cmd cd"
|
||||
];
|
||||
};
|
||||
|
||||
}
|
|
@ -1,9 +1,5 @@
|
|||
{ pkgs, ... }:
|
||||
let
|
||||
plymouth_logo = pkgs.fetchurl {
|
||||
url = "https://files.huwe.mooo.com/outlinenobackground.png";
|
||||
hash = "sha256-HdErySgSwNSPEHyBywLyZCAss4vUhsY8BvCPe5hST6Q=";
|
||||
};
|
||||
wallpaper = pkgs.fetchurl {
|
||||
url = "https://files.huwe.mooo.com/Oneshot.png";
|
||||
hash = "sha256-LaIzLCW86sbldE9lk7psbYKaTCjwaPLcoD3il6FalTw=";
|
||||
|
@ -59,22 +55,12 @@ in
|
|||
|
||||
polarity = "dark";
|
||||
|
||||
targets.plymouth.logo = plymouth_logo;
|
||||
|
||||
};
|
||||
|
||||
home-manager.users.willifan = {
|
||||
stylix = {
|
||||
iconTheme = {
|
||||
enable = true;
|
||||
autoEnable = true;
|
||||
};
|
||||
};
|
||||
|
||||
home-manager.users.willifan = {
|
||||
gtk.iconTheme = {
|
||||
name = "Papirus-Dark";
|
||||
dark = "Papirus-Dark";
|
||||
package = pkgs.papirus-icon-theme;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
}
|
8
modules/home-manager/tmux/default.nix
Normal file
8
modules/home-manager/tmux/default.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{ ... }:
|
||||
{
|
||||
|
||||
programs.tmux = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
}
|
9
modules/home-manager/utils/default.nix
Normal file
9
modules/home-manager/utils/default.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{ ... }:
|
||||
{
|
||||
|
||||
services.avizo.enable = true;
|
||||
programs.bat.enable = true;
|
||||
programs.btop.enable = true;
|
||||
programs.yazi.enable = true;
|
||||
|
||||
}
|
|
@ -1,4 +1,2 @@
|
|||
{ ... }:
|
||||
{
|
||||
|
||||
}
|
||||
{}
|
||||
|
|
|
@ -1,4 +1,2 @@
|
|||
{ ... }:
|
||||
{
|
||||
|
||||
}
|
||||
{}
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./nixvim
|
||||
./shell
|
||||
./theme
|
||||
./tmux
|
||||
./utils
|
||||
|
||||
./envvar.nix
|
||||
./git.nix
|
||||
./locales.nix
|
||||
./user.nix
|
||||
];
|
||||
|
||||
home-manager.users.willifan.home.stateVersion = "23.11";
|
||||
}
|
|
@ -1,14 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
home-manager.users.willifan = {
|
||||
programs.git = {
|
||||
enable = true;
|
||||
package = pkgs.gitAndTools.gitFull;
|
||||
userName = "willifan";
|
||||
userEmail = "willifan@proton.me";
|
||||
extraConfig = {
|
||||
init.defaultBranch = "main";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,20 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
|
||||
home-manager.users.willifan = {
|
||||
programs = {
|
||||
bash = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
ls = "eza";
|
||||
};
|
||||
};
|
||||
starship = {
|
||||
enableBashIntegration = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# programs.bash.blesh.enable = true;
|
||||
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
|
||||
home-manager.users.willifan = {
|
||||
programs.eza = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
}
|
|
@ -1,55 +0,0 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
home-manager.users.willifan = {
|
||||
programs.hyfetch = {
|
||||
enable = true;
|
||||
settings = {
|
||||
preset = "transgender";
|
||||
mode = "rgb";
|
||||
light_dark = "dark";
|
||||
lightness = 0.69;
|
||||
color_align = {
|
||||
mode = "horizontal";
|
||||
custom_colors = [];
|
||||
fore_back = null;
|
||||
};
|
||||
backend = "fastfetch";
|
||||
args = null;
|
||||
distro = null;
|
||||
pride_month_shown = [];
|
||||
pride_month_disable = false;
|
||||
};
|
||||
};
|
||||
programs.fastfetch = {
|
||||
enable = true;
|
||||
settings = {
|
||||
modules = [
|
||||
"title"
|
||||
"separator"
|
||||
"os"
|
||||
"host"
|
||||
{
|
||||
type = "localip";
|
||||
showIpv6 = false;
|
||||
showMac = false;
|
||||
showSpeed = false;
|
||||
showMtu = false;
|
||||
showLoop = false;
|
||||
showFlags = false;
|
||||
}
|
||||
"kernel"
|
||||
"uptime"
|
||||
"packages"
|
||||
"shell"
|
||||
"wm"
|
||||
"cpu"
|
||||
"gpu"
|
||||
"memory"
|
||||
"break"
|
||||
"colors"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,15 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
|
||||
home-manager.users.willifan = {
|
||||
programs = {
|
||||
nushell = {
|
||||
enable = true;
|
||||
};
|
||||
starship = {
|
||||
enableNushellIntegration = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
home-manager.users.willifan = {
|
||||
|
||||
};
|
||||
}
|
|
@ -1,13 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
|
||||
home-manager.users.willifan = {
|
||||
programs.zoxide = {
|
||||
enable = true;
|
||||
options = [
|
||||
"--cmd cd"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
}
|
|
@ -1,14 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
|
||||
users.defaultUserShell = pkgs.zsh;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
zsh-powerlevel10k
|
||||
];
|
||||
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
promptInit = "source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
|
||||
};
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./stylix.nix
|
||||
];
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
|
||||
home-manager.users.willifan = {
|
||||
programs.tmux = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
}
|
|
@ -1,18 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
|
||||
|
||||
home-manager.users.willifan = {
|
||||
services.avizo.enable = true;
|
||||
programs.bat.enable = true;
|
||||
programs.btop.enable = true;
|
||||
programs.yazi.enable = true;
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
|
||||
tealdeer
|
||||
|
||||
];
|
||||
|
||||
}
|
|
@ -1,8 +1,7 @@
|
|||
{ hostname, type, ... }:
|
||||
{ type, hostname, ... }:
|
||||
{
|
||||
imports = [
|
||||
./common
|
||||
./${type}
|
||||
./${hostname}
|
||||
./${type}
|
||||
];
|
||||
}
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
imports = [
|
||||
./embedded.nix
|
||||
./logic-analyzer.nix
|
||||
./rust.nix
|
||||
./vscodium.nix
|
||||
];
|
||||
|
||||
|
|
|
@ -1,14 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
|
||||
clang
|
||||
gcc
|
||||
llvmPackages.bintools
|
||||
rustup
|
||||
|
||||
probe-rs
|
||||
cargo-binutils
|
||||
|
||||
];
|
||||
}
|
Loading…
Add table
Reference in a new issue