all repos — nixfiles @ 23b02c2a0778e851db3671443e4129f60af7d4ed

System and user configuration, managed by nix and home-manager

setup home-manager environment for nanopi
Alan Pearce alan@alanpearce.eu
Mon, 06 Mar 2023 10:33:50 +0100
commit

23b02c2a0778e851db3671443e4129f60af7d4ed

parent

767a36b4372f5a54afeef8ec98524ffeb50cdbeb

2 files changed, 13 insertions(+), 1 deletions(-)

jump to
M flake.nixflake.nix
@@ -26,6 +26,8 @@ darwinSystem = "aarch64-darwin";     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";
@@ -46,6 +48,10 @@ homeConfigurations."alan@prefect" = home-manager.lib.homeManagerConfiguration {       pkgs = nixosPkgs;
       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];
     };
   };
 }
M user/server.nixuser/server.nix
@@ -10,7 +10,13 @@ ./settings/base.nix     ./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";
+  };
 }