add (options): add options template for all config's type #4
4 changed files with 22 additions and 1 deletions
|
|
@ -14,7 +14,10 @@ deviceName:
|
|||
let
|
||||
inherit (nixpkgs) lib;
|
||||
|
||||
CustomOptions = ../options;
|
||||
DeviceCustomOptions = ../options/device;
|
||||
HostCustomOptions = ../options/host;
|
||||
HomeCustomOptions = ../options/home;
|
||||
|
||||
DeviceConfig = ../devices/${deviceName};
|
||||
HostConfig = ../users/${hostName}/host;
|
||||
HomeConfig = ../users/${userName}/home;
|
||||
|
|
@ -57,6 +60,9 @@ lib.nixosSystem {
|
|||
specialArgs = additionalArgs;
|
||||
|
||||
modules = [
|
||||
DeviceCustomOptions
|
||||
HostCustomOptions
|
||||
|
||||
CustomOptions
|
||||
DeviceConfig
|
||||
HostConfig
|
||||
|
|
@ -74,6 +80,7 @@ lib.nixosSystem {
|
|||
{
|
||||
home-manager = {
|
||||
users.${userName} = import HomeConfig;
|
||||
users.${userName} = import HomeCustomOptions;
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
extraSpecialArgs = additionalArgs;
|
||||
|
|
|
|||
7
options/home/default.nix
Normal file
7
options/home/default.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{ customFunctions, ... }:
|
||||
{
|
||||
imports = customFunctions.scan {
|
||||
path = ./.;
|
||||
exclude = [ ./default.nix ];
|
||||
};
|
||||
}
|
||||
7
options/host/default.nix
Normal file
7
options/host/default.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{ customFunctions, ... }:
|
||||
{
|
||||
imports = customFunctions.scan {
|
||||
path = ./.;
|
||||
exclude = [ ./default.nix ];
|
||||
};
|
||||
}
|
||||
Reference in a new issue