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