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/
!overlays/
!profiles/
!modules/
!applications/
!/flake/
+5 -2
View File
@@ -7,6 +7,8 @@
let
inherit (inputs.nixpkgs.lib) nixosSystem;
userName = "moons";
mkSystem =
{
host,
@@ -19,11 +21,12 @@ let
nixosSystem {
inherit system;
modules = [
./${host}/hardware-configuration.nix
../profiles/${profile}.nix
../hosts/${host}/default.nix
./${host}/default.nix
]
++ extraModules;
specialArgs = { inherit inputs; };
specialArgs = { inherit inputs userName; };
};
in
{
+8 -1
View File
@@ -1 +1,8 @@
_: { }
{
userName,
...
}:
{
imports = [ ];
home-manager.users.${userName}.imports = [ ];
}