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;
|
HomeCustomOptions = ../options/home;
|
||||||
|
|
||||||
DeviceConfig = ../devices/${deviceName};
|
DeviceConfig = ../devices/${deviceName};
|
||||||
HostConfig = ../users/${hostName}/host;
|
HostConfig = ../users/${userName}/host;
|
||||||
HomeConfig = ../users/${userName}/home;
|
HomeConfig = ../users/${userName}/home;
|
||||||
|
|
||||||
customFunctions = import ./utils.nix { inherit lib; };
|
customFunctions = import ./utils.nix { inherit lib; };
|
||||||
|
|
@ -30,13 +30,13 @@ let
|
||||||
systemArch
|
systemArch
|
||||||
nixpkgs-old
|
nixpkgs-old
|
||||||
nixpkgs-latest
|
nixpkgs-latest
|
||||||
packagesConfig
|
userPackagesConfig
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|> builtins.attrValues;
|
|> builtins.attrValues;
|
||||||
overlays = baseOverlays ++ additionalOverlays;
|
overlays = baseOverlays ++ additionalOverlays;
|
||||||
|
|
||||||
userData = import ../users/${userName}/data.nix {
|
userData = import ../users/${userName}/data {
|
||||||
inherit
|
inherit
|
||||||
deviceName
|
deviceName
|
||||||
hostName
|
hostName
|
||||||
|
|
@ -44,10 +44,18 @@ let
|
||||||
systemArch
|
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 = {
|
sops = {
|
||||||
defaultSopsFormat = "yaml";
|
defaultSopsFormat = "yaml";
|
||||||
|
|
@ -63,7 +71,6 @@ lib.nixosSystem {
|
||||||
DeviceCustomOptions
|
DeviceCustomOptions
|
||||||
HostCustomOptions
|
HostCustomOptions
|
||||||
|
|
||||||
CustomOptions
|
|
||||||
DeviceConfig
|
DeviceConfig
|
||||||
HostConfig
|
HostConfig
|
||||||
|
|
||||||
|
|
@ -79,8 +86,12 @@ lib.nixosSystem {
|
||||||
inputs.home-manager.nixosModules.home-manager
|
inputs.home-manager.nixosModules.home-manager
|
||||||
{
|
{
|
||||||
home-manager = {
|
home-manager = {
|
||||||
users.${userName} = import HomeConfig;
|
users.${userName} = {
|
||||||
users.${userName} = import HomeCustomOptions;
|
imports = [
|
||||||
|
HomeConfig
|
||||||
|
HomeCustomOptions
|
||||||
|
];
|
||||||
|
};
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
extraSpecialArgs = additionalArgs;
|
extraSpecialArgs = additionalArgs;
|
||||||
|
|
|
||||||
Reference in a new issue