2023-09-26 22:25:58 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
minimal,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
lib.optionalAttrs (!minimal) {
|
2024-10-26 18:56:45 +02:00
|
|
|
services.dbus = {
|
|
|
|
enable = true;
|
|
|
|
implementation = "broker";
|
|
|
|
};
|
2023-09-03 13:05:23 +02:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
wdisplays
|
|
|
|
wl-clipboard
|
2024-10-23 14:44:05 +02:00
|
|
|
wev
|
2023-09-03 13:05:23 +02:00
|
|
|
];
|
2024-06-30 19:53:19 +02:00
|
|
|
xdg.portal = {
|
|
|
|
enable = true;
|
|
|
|
xdgOpenUsePortal = true;
|
|
|
|
config.common = {
|
2024-07-26 22:12:48 +02:00
|
|
|
"org.freedesktop.impl.portal.Secret" = [ "gnome-keyring" ];
|
|
|
|
"org.freedesktop.impl.portal.ScreenCast" = [ "hyprland" ];
|
|
|
|
"org.freedesktop.impl.portal.Screenshot" = [ "hyprland" ];
|
|
|
|
"org.freedesktop.portal.FileChooser" = [ "xdg-desktop-portal-gtk" ];
|
2024-06-30 19:53:19 +02:00
|
|
|
};
|
|
|
|
extraPortals = [
|
|
|
|
pkgs.xdg-desktop-portal-hyprland
|
|
|
|
pkgs.xdg-desktop-portal-gtk
|
|
|
|
];
|
|
|
|
};
|
2024-10-27 12:56:32 +01:00
|
|
|
services.displayManager.enable = true;
|
|
|
|
programs.uwsm = {
|
|
|
|
enable = true;
|
|
|
|
waylandCompositors = {
|
|
|
|
hyprland = {
|
|
|
|
binPath = "/etc/profiles/per-user/patrick/bin/Hyprland";
|
|
|
|
prettyName = "Hyprland";
|
|
|
|
};
|
|
|
|
sway = {
|
|
|
|
binPath = "/etc/profiles/per-user/patrick/bin/sway";
|
|
|
|
prettyName = "Sway";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-09-01 20:17:33 +02:00
|
|
|
}
|