summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2023-04-17 09:24:00 +0200
committerAlan Pearce2023-04-17 09:24:00 +0200
commit659df13a8a6ac848cc095987f33cc1020bd66af9 (patch)
treeac9cd9e5646cb93277bb419fcb91682cebd4a4ea
parentd3779759662e190b9ce7ccbd4620b956984e2b07 (diff)
downloadnixfiles-659df13a8a6ac848cc095987f33cc1020bd66af9.tar.lz
nixfiles-659df13a8a6ac848cc095987f33cc1020bd66af9.tar.zst
nixfiles-659df13a8a6ac848cc095987f33cc1020bd66af9.zip
Split NanoPi/other server config
-rw-r--r--flake.nix2
-rw-r--r--user/nanopi.nix20
-rw-r--r--user/server.nix5
3 files changed, 22 insertions, 5 deletions
diff --git a/flake.nix b/flake.nix
index 9cdc3e62..7abc74cd 100644
--- a/flake.nix
+++ b/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;
diff --git a/user/nanopi.nix b/user/nanopi.nix
new file mode 100644
index 00000000..130e985e
--- /dev/null
+++ b/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";
+  };
+}
diff --git a/user/server.nix b/user/server.nix
index 83c70ca0..6c1bbe26 100644
--- a/user/server.nix
+++ b/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 = {