feat(hosts): add userName to specialArgs, wire hardware-configuration

This commit is contained in:
2026-05-28 13:11:52 +09:00
parent 039282ba94
commit 796bc7dcb6
3 changed files with 15 additions and 3 deletions
+2
View File
@@ -14,5 +14,7 @@
!hosts/ !hosts/
!overlays/ !overlays/
!profiles/ !profiles/
!modules/
!applications/
!/flake/ !/flake/
+5 -2
View File
@@ -7,6 +7,8 @@
let let
inherit (inputs.nixpkgs.lib) nixosSystem; inherit (inputs.nixpkgs.lib) nixosSystem;
userName = "moons";
mkSystem = mkSystem =
{ {
host, host,
@@ -19,11 +21,12 @@ let
nixosSystem { nixosSystem {
inherit system; inherit system;
modules = [ modules = [
./${host}/hardware-configuration.nix
../profiles/${profile}.nix ../profiles/${profile}.nix
../hosts/${host}/default.nix ./${host}/default.nix
] ]
++ extraModules; ++ extraModules;
specialArgs = { inherit inputs; }; specialArgs = { inherit inputs userName; };
}; };
in in
{ {
+8 -1
View File
@@ -1 +1,8 @@
_: { } {
userName,
...
}:
{
imports = [ ];
home-manager.users.${userName}.imports = [ ];
}