all repos — nixfiles @ 659df13a8a6ac848cc095987f33cc1020bd66af9

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

Split NanoPi/other server config
Alan Pearce alan@alanpearce.eu
Mon, 17 Apr 2023 09:24:00 +0200
commit

659df13a8a6ac848cc095987f33cc1020bd66af9

parent

d3779759662e190b9ce7ccbd4620b956984e2b07

3 files changed, 22 insertions(+), 5 deletions(-)

jump to
M flake.nixflake.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.nixuser/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 = {