PortValhalla/lib/modules/windows.nix

41 lines
1.2 KiB
Nix
Raw Permalink Normal View History

2024-08-08 13:28:29 +00:00
{ lib, config, ... }:
2024-10-06 19:25:34 +00:00
let
inherit (lib) mkDefault mkEnableOption mkIf mkOption types;
capitalize = (import ../text.nix { inherit lib; }).capitalize;
in {
options = {
valhalla = {
windows = {
dualboot = {
enable = mkEnableOption "dual boot";
2024-07-27 23:56:41 +00:00
2024-10-06 19:25:34 +00:00
linuxPercentage = mkOption {
type = types.number;
description = "The percentage of the disk size reserved for Linux.";
};
2024-10-06 19:25:34 +00:00
};
2024-10-06 19:25:34 +00:00
showFileExt = mkOption {
type = types.bool;
description = "A value indicating whether file extensions should be displayed in Windows Explorer.";
default = true;
};
2024-08-05 17:12:59 +00:00
2024-10-06 19:25:34 +00:00
legacyIconSpacing = mkEnableOption "legacy icon spacing" // {
default = true;
2024-07-27 23:56:41 +00:00
};
2024-10-06 19:25:34 +00:00
dynamicLighting = mkEnableOption "dynamic lighting";
adware = mkEnableOption "adware"; # Fuck you for displaying ads on an OS I fricking paid for!
2024-08-23 16:59:49 +00:00
};
};
2024-10-06 19:25:34 +00:00
};
2024-07-27 23:56:41 +00:00
2024-10-06 19:25:34 +00:00
config = {
valhalla.windows = {
setupUser.name = mkDefault (capitalize config.valhalla.setupUser.name);
dualboot.linuxPercentage = mkIf (!config.valhalla.windows.dualboot.enable) (mkDefault 0);
2024-07-27 23:56:41 +00:00
};
2024-10-06 19:25:34 +00:00
};
}