summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2023-03-06 10:33:50 +0100
committerAlan Pearce2023-03-06 21:29:35 +0100
commit23b02c2a0778e851db3671443e4129f60af7d4ed (patch)
treefa45110b72671d051637a38b075392ed7722530f
parent767a36b4372f5a54afeef8ec98524ffeb50cdbeb (diff)
downloadnixfiles-23b02c2a0778e851db3671443e4129f60af7d4ed.tar.lz
nixfiles-23b02c2a0778e851db3671443e4129f60af7d4ed.tar.zst
nixfiles-23b02c2a0778e851db3671443e4129f60af7d4ed.zip
setup home-manager environment for nanopi
-rw-r--r--flake.nix6
-rw-r--r--user/server.nix8
2 files changed, 13 insertions, 1 deletions
diff --git a/flake.nix b/flake.nix
index 06377fee..4d30aaf4 100644
--- a/flake.nix
+++ b/flake.nix
@@ -26,6 +26,8 @@
     darwinPkgs = nixpkgs.legacyPackages.${darwinSystem};
     nixosSystem = "x86_64-linux";
     nixosPkgs = nixpkgs.legacyPackages.${nixosSystem};
+    aarch64LinuxSystem = "aarch64-linux";
+    aarch64LinuxPackages = nixpkgs.legacyPackages.${aarch64LinuxSystem};
   in {
     nixosConfigurations.prefect = nixpkgs.lib.nixosSystem {
       system = "x86_64-linux";
@@ -47,5 +49,9 @@
       modules = [./user/prefect.nix (secrets + "/default.nix")
       ({ nixpkgs.overlays = [emacs-overlay.overlay]; })];
     };
+    homeConfigurations."alan@NanoPi.lan" = home-manager.lib.homeManagerConfiguration {
+      pkgs = aarch64LinuxPackages;
+      modules = [./user/server.nix];
+    };
   };
 }
diff --git a/user/server.nix b/user/server.nix
index 61eb38c4..7a2f0cc9 100644
--- a/user/server.nix
+++ b/user/server.nix
@@ -10,7 +10,13 @@ with lib; {
     ./settings/git.nix
     ./settings/nix.nix
     ./settings/nixos.nix
+    ./settings/music-management.nix
     ./settings/zsh.nix
   ];
-  home.sessionVariables.EDITOR = "${getBin config.programs.neovim.finalPackage}/bin/neovim";
+  home = {
+    username = "alan";
+    sessionVariables.EDITOR = "${config.programs.neovim.finalPackage}/bin/nvim";
+    homeDirectory = "/mnt/internal/home/alan";
+    stateVersion = "22.11";
+  };
 }