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