all repos — nixfiles @ 4ad6b47ca85832949653d87ae23bb6ad3dcebf03

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

linde/nanopi: enable home-manager nixos module
Alan Pearce alan@alanpearce.eu
Fri, 31 May 2024 03:59:48 +0200
commit

4ad6b47ca85832949653d87ae23bb6ad3dcebf03

parent

0c159c26d4cc2d35d4dd3f1d3fc8146de46445dd

2 files changed, 13 insertions(+), 0 deletions(-)

jump to
M flake.nixflake.nix
@@ -66,6 +66,17 @@ agenix.nixosModules.default           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 {
M system/nanopi.nixsystem/nanopi.nix
@@ -13,6 +13,7 @@ imports = [     ./nanopi-hardware.nix
     <agenix/modules/age.nix>
     <nixos-hardware/friendlyarm/nanopi-r5s>
+    <home-manager/nixos>
   ];
 
   age.secrets = {
@@ -635,6 +636,7 @@ openssh.authorizedKeys.keys = [       "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMvcW4Z9VxOQgEJjsRC1uSMwEJ4vru9BwjT+Z50nawp4 lan"
     ];
   };
+  home-manager.users.alan = import ../user/nanopi.nix;
 
   users.groups = {
     linde.members = [ ];