mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 05:18:12 +09:00
feat(hosts): add userName to specialArgs, wire hardware-configuration
This commit is contained in:
@@ -14,5 +14,7 @@
|
||||
!hosts/
|
||||
!overlays/
|
||||
!profiles/
|
||||
!modules/
|
||||
!applications/
|
||||
|
||||
!/flake/
|
||||
|
||||
+5
-2
@@ -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
@@ -1 +1,8 @@
|
||||
_: { }
|
||||
{
|
||||
userName,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [ ];
|
||||
home-manager.users.${userName}.imports = [ ];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user