Consolidate module options naming
This commit is contained in:
parent
8f0ca00343
commit
0f030fd0ca
|
|
@ -24,5 +24,5 @@
|
|||
# drivers.nvidia.enable = false;
|
||||
# drivers.nvidia-prime.enable = false;
|
||||
# drivers.intel.enable = false;
|
||||
vm.guest-services.enable = true;
|
||||
modules.vm.guestServices.enable = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
loader.systemd-boot = {
|
||||
enable = true;
|
||||
configurationLimit = 10;
|
||||
consoleMode = config.system.systemdBootConsoleMode;
|
||||
consoleMode = config.modules.system.systemdBootConsoleMode;
|
||||
};
|
||||
loader.efi.canTouchEfiVariables = true;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.system;
|
||||
cfg = config.modules.system;
|
||||
in
|
||||
{
|
||||
nix = {
|
||||
|
|
|
|||
|
|
@ -5,13 +5,9 @@
|
|||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.vm.guest-services;
|
||||
cfg = config.modules.vm.guestServices;
|
||||
in
|
||||
{
|
||||
options.vm.guest-services = {
|
||||
enable = mkEnableOption "Enable Virtual Machine Guest Services";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.qemuGuest.enable = true;
|
||||
services.spice-vdagentd.enable = true;
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
./shell.nix
|
||||
./system.nix
|
||||
./tailscale.nix
|
||||
./vm.nix
|
||||
./zsh.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
}:
|
||||
with lib;
|
||||
{
|
||||
options.system = {
|
||||
options.modules.system = {
|
||||
locale = mkOption {
|
||||
type = types.str;
|
||||
default = "en_US.UTF-8";
|
||||
|
|
|
|||
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
{
|
||||
options.modules.vm = {
|
||||
guestServices = {
|
||||
enable = mkEnableOption "Virtual Machine guest services";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Reference in New Issue