Clean up the Windows configuration
This commit is contained in:
parent
c2b83d666a
commit
9ec3aa95c9
1 changed files with 10 additions and 23 deletions
|
@ -7,18 +7,11 @@
|
||||||
types
|
types
|
||||||
;
|
;
|
||||||
|
|
||||||
setupUser = config.valhalla.setupUser.name;
|
|
||||||
capitalize = (import ../text.nix { inherit lib; }).capitalize;
|
capitalize = (import ../text.nix { inherit lib; }).capitalize;
|
||||||
|
in {
|
||||||
winType = types.submodule (
|
options = {
|
||||||
{ config, ... }: {
|
valhalla = {
|
||||||
options = {
|
windows = {
|
||||||
setupUser = mkOption {
|
|
||||||
type = types.str;
|
|
||||||
description = "The name of the user for setting up Windows.";
|
|
||||||
default = capitalize setupUser;
|
|
||||||
};
|
|
||||||
|
|
||||||
dualboot = {
|
dualboot = {
|
||||||
enable = mkEnableOption "dual boot";
|
enable = mkEnableOption "dual boot";
|
||||||
|
|
||||||
|
@ -41,19 +34,13 @@
|
||||||
dynamicLighting = mkEnableOption "dynamic lighting";
|
dynamicLighting = mkEnableOption "dynamic lighting";
|
||||||
adware = mkEnableOption "adware"; # Fuck you for displaying ads on an OS I fricking paid for!
|
adware = mkEnableOption "adware"; # Fuck you for displaying ads on an OS I fricking paid for!
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
dualboot.linuxPercentage = mkIf (!config.dualboot.enable) 0;
|
valhalla.windows = {
|
||||||
};
|
setupUser.name = capitalize config.valhalla.setupUser.name;
|
||||||
});
|
dualboot.linuxPercentage = mkIf (!config.valhalla.windows.dualboot.enable) 0;
|
||||||
in {
|
|
||||||
options = {
|
|
||||||
valhalla = {
|
|
||||||
windows = mkOption {
|
|
||||||
type = winType;
|
|
||||||
description = "The options for setting up Windows.";
|
|
||||||
default = {};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue