nix-config/modules/nixos/graphical/default.nix

38 lines
736 B
Nix

{ pkgs, ... }:
{
services.greetd = {
enable = true;
settings = rec {
initial_session = {
command = "${pkgs.uwsm}/bin/uwsm start hyprland-uwsm.desktop";
user = "larstvei";
};
default_session = initial_session;
};
};
programs.hyprland = {
enable = true;
withUWSM = true;
package = pkgs.hyprland;
portalPackage = pkgs.xdg-desktop-portal-hyprland;
};
xdg.portal = {
enable = true;
extraPortals = [
pkgs.xdg-desktop-portal-hyprland
pkgs.xdg-desktop-portal-gtk
pkgs.darkman
];
config.hyprland = {
default = [
"hyprland"
"gtk"
];
"org.freedesktop.impl.portal.Settings" = [ "darkman" ];
};
};
}