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, ... }: { 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);
}; };
}; };
} }