modularize desktop components

This commit is contained in:
2024-04-13 16:42:51 +02:00
parent d3da8ba3ac
commit e0176ec2d9
14 changed files with 141 additions and 96 deletions

View File

@@ -0,0 +1,22 @@
{ lib, config, ... }:
let
cfg = config.desktop.de.hyprland;
in
{
options.desktop.de.hyprland = {
enable = lib.mkEnableOption "enable hyprland desktop environment";
};
config = lib.mkIf cfg.enable {
services = {
xserver.libinput.enable = true;
dbus.enable = true;
};
programs.hyprland = {
enable = true;
xwayland.enable = true;
};
};
}