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;
|
||||
|
||||
CustomOptions = ../options;
|
||||
DeviceConfig = ../devices/${deviceName};
|
||||
HostConfig = ../users/${hostName}/host;
|
||||
HomeConfig = ../users/${userName}/home;
|
||||
|
||||
customFunctions = import ./utils.nix { inherit lib; };
|
||||
|
||||
baseOverlays =
|
||||
|
|
@ -29,10 +33,6 @@ let
|
|||
|> builtins.attrValues;
|
||||
overlays = baseOverlays ++ additionalOverlays;
|
||||
|
||||
DeviceConfig = ../devices/${deviceName};
|
||||
HostConfig = ../users/${hostName}/host;
|
||||
HomeConfig = ../users/${userName}/home;
|
||||
|
||||
userData = import ../users/${userName}/data.nix {
|
||||
inherit
|
||||
deviceName
|
||||
|
|
@ -66,6 +66,8 @@ lib.nixosSystem {
|
|||
inherit overlays;
|
||||
config = userPackagesConfig;
|
||||
};
|
||||
|
||||
networking.hostName = hostName;
|
||||
}
|
||||
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
|
|
|
|||
Reference in a new issue