add (hostname): automatically configure hostname
This commit is contained in:
parent
094d206afc
commit
b1fc29cf4f
1 changed files with 6 additions and 4 deletions
|
|
@ -15,6 +15,10 @@ let
|
||||||
inherit (nixpkgs) lib;
|
inherit (nixpkgs) lib;
|
||||||
|
|
||||||
CustomOptions = ../options;
|
CustomOptions = ../options;
|
||||||
|
DeviceConfig = ../devices/${deviceName};
|
||||||
|
HostConfig = ../users/${hostName}/host;
|
||||||
|
HomeConfig = ../users/${userName}/home;
|
||||||
|
|
||||||
customFunctions = import ./utils.nix { inherit lib; };
|
customFunctions = import ./utils.nix { inherit lib; };
|
||||||
|
|
||||||
baseOverlays =
|
baseOverlays =
|
||||||
|
|
@ -29,10 +33,6 @@ let
|
||||||
|> builtins.attrValues;
|
|> builtins.attrValues;
|
||||||
overlays = baseOverlays ++ additionalOverlays;
|
overlays = baseOverlays ++ additionalOverlays;
|
||||||
|
|
||||||
DeviceConfig = ../devices/${deviceName};
|
|
||||||
HostConfig = ../users/${hostName}/host;
|
|
||||||
HomeConfig = ../users/${userName}/home;
|
|
||||||
|
|
||||||
userData = import ../users/${userName}/data.nix {
|
userData = import ../users/${userName}/data.nix {
|
||||||
inherit
|
inherit
|
||||||
deviceName
|
deviceName
|
||||||
|
|
@ -66,6 +66,8 @@ lib.nixosSystem {
|
||||||
inherit overlays;
|
inherit overlays;
|
||||||
config = userPackagesConfig;
|
config = userPackagesConfig;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
networking.hostName = hostName;
|
||||||
}
|
}
|
||||||
|
|
||||||
inputs.home-manager.nixosModules.home-manager
|
inputs.home-manager.nixosModules.home-manager
|
||||||
|
|
|
||||||
Reference in a new issue