2024-07-16 12:34:32 +00:00
|
|
|
{ lib, config, ... }:
|
|
|
|
let
|
|
|
|
inherit (lib)
|
|
|
|
mkOption
|
|
|
|
types
|
|
|
|
;
|
|
|
|
|
|
|
|
cfg = config.valhalla;
|
|
|
|
in {
|
|
|
|
options = {
|
|
|
|
valhalla = {
|
|
|
|
software =
|
|
|
|
let
|
|
|
|
inherit (cfg.software)
|
2024-07-17 12:18:27 +00:00
|
|
|
coding
|
2024-07-16 12:34:32 +00:00
|
|
|
common
|
2024-07-16 12:36:53 +00:00
|
|
|
desktopExperience
|
2024-07-16 12:34:32 +00:00
|
|
|
school
|
2024-07-16 12:36:53 +00:00
|
|
|
server
|
2024-07-16 12:34:32 +00:00
|
|
|
;
|
|
|
|
in {
|
|
|
|
essential = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
description = "A value indicating whether essentials should be installed.";
|
|
|
|
default = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
common = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
description = "A value indicating whether common software should be installed.";
|
|
|
|
default = true;
|
|
|
|
};
|
|
|
|
|
2024-07-16 12:36:53 +00:00
|
|
|
server = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
description = "A value indicating whether server applications should be installed.";
|
|
|
|
default = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
desktopExperience = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
description = "A value indicating whether GUI apps should be installed.";
|
|
|
|
default = common && !server;
|
|
|
|
};
|
|
|
|
|
2024-07-17 12:18:27 +00:00
|
|
|
fileSync = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
description = "A value indicating whether file syncs should be installed.";
|
|
|
|
default = common && !server;
|
|
|
|
};
|
|
|
|
|
2024-07-16 12:34:32 +00:00
|
|
|
school = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
description = "A value indicating whether software for studies should be installed.";
|
|
|
|
default = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
productivity = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
description = "A value indicating whether productivity apps should be installed.";
|
|
|
|
default = common || school;
|
|
|
|
};
|
|
|
|
|
|
|
|
socialMedia = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
description = "A value indicating whether social media apps should be installed.";
|
2024-07-16 12:36:53 +00:00
|
|
|
default = common && desktopExperience;
|
2024-07-16 12:34:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
media = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
description = "A value indicating whether media apps should be installed.";
|
2024-07-16 12:36:53 +00:00
|
|
|
default = common && desktopExperience;
|
2024-07-16 12:34:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
gaming = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
description = "A value indicating whether gaming apps should be installed.";
|
2024-07-16 12:36:53 +00:00
|
|
|
default = common && desktopExperience;
|
2024-07-16 12:34:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
coding = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
description = "A value indicating whether development apps should be installed.";
|
|
|
|
default = common;
|
|
|
|
};
|
2024-07-17 12:18:27 +00:00
|
|
|
|
|
|
|
python = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
description = "A value indicating whether apps for coding python should be installed.";
|
|
|
|
default = coding;
|
|
|
|
};
|
2024-07-16 12:34:32 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|