summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--flake.nix11
-rwxr-xr-xsystem/nanopi.nix2
2 files changed, 13 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index a94afc29..5fccaa19 100644
--- a/flake.nix
+++ b/flake.nix
@@ -66,6 +66,17 @@
           searchix.nixosModules.web
           golink.nixosModules.default
           ./system/linde.nix
+          home-manager.nixosModules.home-manager
+          {
+            home-manager = {
+              extraSpecialArgs = {
+                pkgs = import nixpkgs {
+                  overlays = readOverlays (toString ./overlays);
+                };
+              };
+              users.alan = import ./user/server.nix;
+            };
+          }
         ];
       };
       homeConfigurations."alan@linde" = mkHomeConfiguration {
diff --git a/system/nanopi.nix b/system/nanopi.nix
index b4693530..03765699 100755
--- a/system/nanopi.nix
+++ b/system/nanopi.nix
@@ -13,6 +13,7 @@ in
     ./nanopi-hardware.nix
     <agenix/modules/age.nix>
     <nixos-hardware/friendlyarm/nanopi-r5s>
+    <home-manager/nixos>
   ];
 
   age.secrets = {
@@ -635,6 +636,7 @@ in
       "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMvcW4Z9VxOQgEJjsRC1uSMwEJ4vru9BwjT+Z50nawp4 lan"
     ];
   };
+  home-manager.users.alan = import ../user/nanopi.nix;
 
   users.groups = {
     linde.members = [ ];