setup home-manager environment for nanopi
Alan Pearce alan@alanpearce.eu
Mon, 06 Mar 2023 10:33:50 +0100
2 files changed, 13 insertions(+), 1 deletions(-)
jump to
M flake.nix → flake.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.nix → user/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"; + }; }