summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-05-31 03:59:48 +0200
committerAlan Pearce2024-05-31 03:59:48 +0200
commit4ad6b47ca85832949653d87ae23bb6ad3dcebf03 (patch)
treee34b28b3ff636ad0ef4932c5f42aaf8a1fcd0eb2
parent0c159c26d4cc2d35d4dd3f1d3fc8146de46445dd (diff)
downloadnixfiles-4ad6b47ca85832949653d87ae23bb6ad3dcebf03.tar.lz
nixfiles-4ad6b47ca85832949653d87ae23bb6ad3dcebf03.tar.zst
nixfiles-4ad6b47ca85832949653d87ae23bb6ad3dcebf03.zip
linde/nanopi: enable home-manager nixos module
-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 = [ ];