Split NanoPi/other server config
Alan Pearce alan@alanpearce.eu
Mon, 17 Apr 2023 09:24:00 +0200
3 files changed, 22 insertions(+), 5 deletions(-)
M flake.nix → flake.nix
@@ -59,7 +59,7 @@ ]; }; homeConfigurations."alan@NanoPi.lan" = home-manager.lib.homeManagerConfiguration { pkgs = aarch64LinuxPackages; - modules = [ ./user/server.nix ]; + modules = [ ./user/nanopi.nix ]; }; homeConfigurations."alan@pappel" = home-manager.lib.homeManagerConfiguration { pkgs = nixosPkgs;
A user/nanopi.nix
@@ -0,0 +1,20 @@+{ config +, ... +}: +{ + imports = [ + ./settings/base.nix + ./settings/git.nix + ./settings/nix.nix + ./settings/nixos.nix + ./settings/music-management.nix + ./settings/zsh.nix + ]; + config.programs.tabnine = false; + home = { + username = "alan"; + sessionVariables.EDITOR = "${config.programs.neovim.finalPackage}/bin/nvim"; + homeDirectory = "/home/alan"; + stateVersion = "22.11"; + }; +}
M user/server.nix → user/server.nix
@@ -1,15 +1,12 @@ { config -, lib -, pkgs , ... }: -with lib; { +{ imports = [ ./settings/base.nix ./settings/git.nix ./settings/nix.nix ./settings/nixos.nix - ./settings/music-management.nix ./settings/zsh.nix ]; home = {