diff options
author | Alex Auvolat <alex@adnab.me> | 2023-01-17 15:49:32 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-01-17 15:49:32 +0100 |
commit | 0df93e912e8644f2a93be0119296dbcb5ae06093 (patch) | |
tree | 89971a0a23d4bc183764b780fb464b5456d8040b /nixpkgs | |
parent | d47dd5aa3882aea1a8eff4fb9faa4881274559dc (diff) | |
download | user-config-0df93e912e8644f2a93be0119296dbcb5ae06093.tar.gz user-config-0df93e912e8644f2a93be0119296dbcb5ae06093.zip |
Add zfs, unify home manager
Diffstat (limited to 'nixpkgs')
-rw-r--r-- | nixpkgs/Makefile | 4 | ||||
-rw-r--r-- | nixpkgs/common.nix (renamed from nixpkgs/home.nix) | 5 | ||||
-rw-r--r-- | nixpkgs/kusanagi.nix | 9 | ||||
-rw-r--r-- | nixpkgs/lindy.nix | 7 |
4 files changed, 19 insertions, 6 deletions
diff --git a/nixpkgs/Makefile b/nixpkgs/Makefile index e99f6c2..4b3becf 100644 --- a/nixpkgs/Makefile +++ b/nixpkgs/Makefile @@ -1,3 +1,3 @@ all: - nixfmt home.nix - home-manager switch -f home.nix + nixfmt `hostname`.nix + home-manager switch -f `hostname`.nix diff --git a/nixpkgs/home.nix b/nixpkgs/common.nix index ae8bc5d..7ecdb89 100644 --- a/nixpkgs/home.nix +++ b/nixpkgs/common.nix @@ -1,6 +1,5 @@ { pkgs, ... }: { home.username = "lx"; - home.homeDirectory = "/home/lx"; programs.bash = { enable = true; @@ -12,7 +11,7 @@ programs.keychain = { enable = true; enableBashIntegration = true; - keys = [ "/home/lx/.ssh/id_ed25519" ]; + keys = [ "~/.ssh/id_ed25519" ]; }; programs.vim = { enable = true; @@ -30,7 +29,6 @@ xdg.enable = true; xdg.userDirs = { - download = "/home/lx/Downloads"; desktop = null; documents = null; pictures = null; @@ -46,4 +44,3 @@ home.stateVersion = "22.11"; } - diff --git a/nixpkgs/kusanagi.nix b/nixpkgs/kusanagi.nix new file mode 100644 index 0000000..6757886 --- /dev/null +++ b/nixpkgs/kusanagi.nix @@ -0,0 +1,9 @@ +{ pkgs, ... }: { + imports = [ + ./common.nix + ]; + + home.homeDirectory = "/home/lx"; + xdg.userDirs.download = "/home/lx/Downloads"; +} + diff --git a/nixpkgs/lindy.nix b/nixpkgs/lindy.nix new file mode 100644 index 0000000..1dbc65f --- /dev/null +++ b/nixpkgs/lindy.nix @@ -0,0 +1,7 @@ +{ pkgs, ... }: { + imports = [ ./common.nix ]; + + home.homeDirectory = "/home/lx.nix"; + xdg.userDirs.download = "/home/lx.nix/Downloads"; +} + |