Allow overriding Windows settings

This commit is contained in:
Manuel Thalmann 2024-08-24 14:20:22 +02:00
parent d6daf8f85b
commit bde4a6bea3

View file

@ -1,9 +1,10 @@
{ lib, config, ... }:
let
inherit (lib)
mkOption
mkDefault
mkEnableOption
mkIf
mkOption
types
;
@ -39,8 +40,8 @@
config = {
valhalla.windows = {
setupUser.name = capitalize config.valhalla.setupUser.name;
dualboot.linuxPercentage = mkIf (!config.valhalla.windows.dualboot.enable) 0;
setupUser.name = mkDefault (capitalize config.valhalla.setupUser.name);
dualboot.linuxPercentage = mkIf (!config.valhalla.windows.dualboot.enable) (mkDefault 0);
};
};
}