dotfiles/modules/shared/config.nix

37 lines
752 B
Nix
Raw Normal View History

2024-09-20 08:57:36 +02:00
{
lib,
...
}:
let
inherit (lib) types;
in
{
options = {
dotfiles = lib.mkOption {
type = types.submodule {
options = {
desktop = lib.mkOption {
description = "The desktop environment to use";
type = types.nullOr (
types.enum [
"cosmic"
"gnome"
"hyprland"
"sway"
"swayfx"
]
);
};
username = lib.mkOption {
description = "The username of the user";
type = types.str;
};
};
};
};
isGraphical = lib.mkEnableOption "" // {
description = "Whether the system is a graphical target";
};
};
}