2024-07-20 13:18:01 +02:00
|
|
|
{
|
2024-07-21 20:14:19 +02:00
|
|
|
inputs',
|
2024-07-20 13:18:01 +02:00
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
cfg = config.modules.usrEnv;
|
|
|
|
inherit (lib.options) mkOption;
|
|
|
|
inherit (lib.types) bool enum package;
|
|
|
|
in {
|
|
|
|
options.modules.usrEnv = {
|
|
|
|
desktop = mkOption {
|
2024-07-20 13:56:02 +02:00
|
|
|
type = enum ["none" "Hyprland" "awesomewm" "i3"];
|
2024-07-20 13:18:01 +02:00
|
|
|
default = "none";
|
|
|
|
description = ''
|
|
|
|
The desktop environment to be used.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
desktops = {
|
|
|
|
hyprland = {
|
|
|
|
enable = mkOption {
|
|
|
|
type = bool;
|
|
|
|
default = cfg.desktop == "Hyprland";
|
|
|
|
description = ''
|
|
|
|
Whether to enable Hyprland wayland compositor.
|
|
|
|
|
|
|
|
Will be enabled automatically when `modules.usrEnv.desktop`
|
|
|
|
is set to "Hyprland".
|
|
|
|
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
package = mkOption {
|
|
|
|
type = package;
|
2024-07-21 20:14:19 +02:00
|
|
|
default = inputs'.hyprland.packages.hyprland;
|
2024-07-20 13:18:01 +02:00
|
|
|
description = ''
|
|
|
|
The Hyprland package to be used.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
awesomwm.enable = mkOption {
|
|
|
|
type = bool;
|
|
|
|
default = cfg.desktop == "awesomewm";
|
|
|
|
description = ''
|
|
|
|
Whether to enable Awesome window manager
|
|
|
|
|
|
|
|
Will be enabled automatically when `modules.usrEnv.desktop`
|
|
|
|
is set to "awesomewm".
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
i3 = {
|
|
|
|
enable = mkOption {
|
|
|
|
type = bool;
|
|
|
|
default = cfg.desktop == "i3";
|
|
|
|
description = ''
|
|
|
|
Whether to enable i3 window manager
|
|
|
|
|
|
|
|
Will be enabled automatically when `modules.usrEnv.desktop`
|
|
|
|
is set to "i3".
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
package = mkOption {
|
|
|
|
type = package;
|
|
|
|
default = pkgs.i3;
|
|
|
|
description = ''
|
|
|
|
The i3 package to be used.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|