fix (options): fix make-config-function's errors
This commit is contained in:
parent
d87fa01cf7
commit
d65929b626
1 changed files with 19 additions and 8 deletions
|
|
@ -19,7 +19,7 @@ let
|
|||
HomeCustomOptions = ../options/home;
|
||||
|
||||
DeviceConfig = ../devices/${deviceName};
|
||||
HostConfig = ../users/${hostName}/host;
|
||||
HostConfig = ../users/${userName}/host;
|
||||
HomeConfig = ../users/${userName}/home;
|
||||
|
||||
customFunctions = import ./utils.nix { inherit lib; };
|
||||
|
|
@ -30,13 +30,13 @@ let
|
|||
systemArch
|
||||
nixpkgs-old
|
||||
nixpkgs-latest
|
||||
packagesConfig
|
||||
userPackagesConfig
|
||||
;
|
||||
}
|
||||
|> builtins.attrValues;
|
||||
overlays = baseOverlays ++ additionalOverlays;
|
||||
|
||||
userData = import ../users/${userName}/data.nix {
|
||||
userData = import ../users/${userName}/data {
|
||||
inherit
|
||||
deviceName
|
||||
hostName
|
||||
|
|
@ -44,10 +44,18 @@ let
|
|||
systemArch
|
||||
;
|
||||
};
|
||||
userScripts = import ../users/${userName}/scripts;
|
||||
|
||||
userPackagesConfig = import ../users/${hostName}/packages_config.nix { inherit lib; };
|
||||
userPackagesConfig = import ../users/${userName}/packages { inherit lib; };
|
||||
|
||||
additionalArgs = { inherit inputs customFunctions userData; };
|
||||
additionalArgs = {
|
||||
inherit
|
||||
inputs
|
||||
customFunctions
|
||||
userData
|
||||
userScripts
|
||||
;
|
||||
};
|
||||
|
||||
sops = {
|
||||
defaultSopsFormat = "yaml";
|
||||
|
|
@ -63,7 +71,6 @@ lib.nixosSystem {
|
|||
DeviceCustomOptions
|
||||
HostCustomOptions
|
||||
|
||||
CustomOptions
|
||||
DeviceConfig
|
||||
HostConfig
|
||||
|
||||
|
|
@ -79,8 +86,12 @@ lib.nixosSystem {
|
|||
inputs.home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager = {
|
||||
users.${userName} = import HomeConfig;
|
||||
users.${userName} = import HomeCustomOptions;
|
||||
users.${userName} = {
|
||||
imports = [
|
||||
HomeConfig
|
||||
HomeCustomOptions
|
||||
];
|
||||
};
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
extraSpecialArgs = additionalArgs;
|
||||
|
|
|
|||
Reference in a new issue