grimm-nix-shared/default.nix
2024-03-16 17:48:41 +01:00

71 lines
1.6 KiB
Nix

{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.grimmShared;
in {
options.grimmShared = {
enable = mkEnableOption "grimm-shared-modules";
locale = mkOption {
type = types.bool;
default = true;
description = "Sets german units but english language";
};
printing = mkOption {
type = types.bool;
default = false;
description = "Enables print and scan related options";
};
portals = mkOption {
type = types.bool;
default = false;
description = "Enables portals for wlr, gtk and kde as well as fixes fonts";
};
network = mkOption {
type = types.bool;
default = false;
description = "Enables network manager, wifi and bluetooth";
};
tooling = {
enable = mkEnableOption "grimm-tooling";
git_user = mkOption {
type = types.str;
default = "Grimmauld";
description = "Username for git to use";
};
git_email = mkOption {
type = types.str;
default = "${config.grimmShared.tooling.git_user}@grimmauld.de";
description = "Email for git to use";
};
};
sound = mkOption {
type = types.bool;
default = false;
description = "whether to enable sound";
};
graphical = mkOption {
type = types.bool;
default = false;
description = "whether to enable graphical components";
}
};
imports = [
./modules/localisation.nix
./modules/printing.nix
./modules/portals.nix
./modules/networking.nix
./modules/toolchains.nix
./modules/sound.nix
];
}