mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-23 08:26:49 +01:00
42 lines
1.2 KiB
Nix
42 lines
1.2 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: {
|
|
options.fireproof = {
|
|
hostname = lib.mkOption {
|
|
type = lib.types.str;
|
|
description = "The hostname of the machine";
|
|
};
|
|
username = lib.mkOption {
|
|
type = lib.types.str;
|
|
description = "The primary username for the machine";
|
|
};
|
|
work.enable = lib.mkEnableOption "Enable work-related applications and tools";
|
|
dev = {
|
|
enable = lib.mkEnableOption "Enable development tools and applications";
|
|
intellij.enable = lib.mkOption {
|
|
type = lib.types.bool;
|
|
default = config.fireproof.dev.enable;
|
|
description = "Enable IntelliJ-based IDEs";
|
|
};
|
|
clickhouse.enable = lib.mkOption {
|
|
type = lib.types.bool;
|
|
default = config.fireproof.dev.enable;
|
|
description = "Enable Clickhouse";
|
|
};
|
|
playwright.enable = lib.mkOption {
|
|
type = lib.types.bool;
|
|
default = config.fireproof.dev.enable;
|
|
description = "Enable Playwright";
|
|
};
|
|
};
|
|
hardware = {
|
|
battery = lib.mkOption {
|
|
type = lib.types.bool;
|
|
default = false;
|
|
description = "Enable battery support (UPower, battery widget, etc.)";
|
|
};
|
|
};
|
|
};
|
|
}
|