From bde4a6bea313aaf024e1ef03bb70de967d941bb0 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sat, 24 Aug 2024 14:20:22 +0200 Subject: [PATCH] Allow overriding Windows settings --- lib/modules/windows.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/modules/windows.nix b/lib/modules/windows.nix index c480e067..c6ff7c85 100644 --- a/lib/modules/windows.nix +++ b/lib/modules/windows.nix @@ -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); }; }; }