modularize desktop components
This commit is contained in:
22
modules/desktop/de/hyprland.nix
Normal file
22
modules/desktop/de/hyprland.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user