Allow overriding Windows settings
This commit is contained in:
parent
d6daf8f85b
commit
bde4a6bea3
|
@ -1,9 +1,10 @@
|
||||||
{ lib, config, ... }:
|
{ lib, config, ... }:
|
||||||
let
|
let
|
||||||
inherit (lib)
|
inherit (lib)
|
||||||
mkOption
|
mkDefault
|
||||||
mkEnableOption
|
mkEnableOption
|
||||||
mkIf
|
mkIf
|
||||||
|
mkOption
|
||||||
types
|
types
|
||||||
;
|
;
|
||||||
|
|
||||||
|
@ -39,8 +40,8 @@
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
valhalla.windows = {
|
valhalla.windows = {
|
||||||
setupUser.name = capitalize config.valhalla.setupUser.name;
|
setupUser.name = mkDefault (capitalize config.valhalla.setupUser.name);
|
||||||
dualboot.linuxPercentage = mkIf (!config.valhalla.windows.dualboot.enable) 0;
|
dualboot.linuxPercentage = mkIf (!config.valhalla.windows.dualboot.enable) (mkDefault 0);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue