restructure

Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
2025-06-17 12:45:52 +03:00
parent 02a8c645e9
commit 0bdff5ef5b
37 changed files with 167 additions and 194 deletions

View File

@ -0,0 +1,36 @@
{
perSystem,
config,
pkgs,
lib,
...
}: let
inherit (lib) mkEnableOption mkIf;
inherit (perSystem) hyprland;
cfg = config.desktop.hyprland;
in {
options = {
desktop.hyprland.enable =
mkEnableOption "enable hyprland desktop";
};
config = mkIf cfg.enable {
module.desktop.displayManager = "greetd";
module.desktop.gnome-keyring.enable = true;
sound.pipewire.enable = true;
programs.hyprland = {
enable = true;
package = hyprland.hyprland;
portalPackage = hyprland.xdg-desktop-portal-hyprland;
};
security.pam.services.hyprlock = {};
xdg.portal = {
enable = true;
extraPortals = [
hyprland.xdg-desktop-portal-hyprland
pkgs.xdg-desktop-portal-gtk
];
config.hyprland.default = ["hyprland" "gtk"];
};
};
}