mirror of
https://github.com/larstvei/nix-config.git
synced 2026-03-01 12:10:13 +00:00
38 lines
736 B
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" ];
|
|
};
|
|
};
|
|
}
|