2024-05-27 16:07:29 -04:00
|
|
|
{
|
|
|
|
config,
|
2024-07-18 21:05:35 -04:00
|
|
|
lib,
|
|
|
|
pkgs,
|
2024-05-27 16:07:29 -04:00
|
|
|
...
|
|
|
|
}: {
|
2024-06-26 22:13:02 -04:00
|
|
|
config = lib.mkIf (config.ar.home.desktop.hyprland.enable || config.ar.home.desktop.sway.enable) {
|
2024-08-02 14:42:35 -04:00
|
|
|
ar.home = {
|
|
|
|
apps = {
|
|
|
|
kitty.enable = lib.mkDefault true;
|
|
|
|
rofi.enable = lib.mkDefault true;
|
|
|
|
swaylock.enable = lib.mkDefault true;
|
|
|
|
waybar.enable = lib.mkDefault true;
|
|
|
|
};
|
2024-08-02 14:49:18 -04:00
|
|
|
|
2024-08-02 14:42:35 -04:00
|
|
|
services = {
|
2024-08-02 16:42:37 -04:00
|
|
|
mako.enable = lib.mkDefault true;
|
2024-08-02 17:00:43 -04:00
|
|
|
pipewire-inhibit.enable = lib.mkDefault true;
|
2024-08-02 14:42:35 -04:00
|
|
|
swayidle.enable = lib.mkDefault true;
|
|
|
|
};
|
2024-05-27 16:07:29 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
dconf = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
2024-07-18 21:05:35 -04:00
|
|
|
"org/gnome/desktop/wm/preferences".button-layout = "";
|
2024-06-21 22:14:07 -04:00
|
|
|
"org/gnome/nm-applet".disable-connected-notifications = true;
|
2024-05-27 16:07:29 -04:00
|
|
|
};
|
|
|
|
};
|
2024-06-11 21:16:05 -04:00
|
|
|
|
|
|
|
home.packages = with pkgs; [
|
2024-07-25 18:03:57 -04:00
|
|
|
blueberry
|
2024-06-17 19:28:52 -04:00
|
|
|
gnome.file-roller
|
2024-06-11 21:16:05 -04:00
|
|
|
networkmanagerapplet
|
2024-06-17 19:28:52 -04:00
|
|
|
swayosd
|
2024-06-11 21:16:05 -04:00
|
|
|
];
|
|
|
|
|
2024-08-02 14:49:18 -04:00
|
|
|
services = {
|
|
|
|
playerctld.enable = lib.mkDefault true;
|
|
|
|
swayosd.enable = lib.mkDefault true;
|
|
|
|
};
|
2024-08-02 15:40:50 -04:00
|
|
|
|
2024-08-02 16:31:15 -04:00
|
|
|
systemd.user.services.swayosd = {
|
|
|
|
Install.WantedBy = lib.mkForce ["hyprland-session.target" "sway-session.target"];
|
|
|
|
Service = {
|
|
|
|
Restart = lib.mkForce "on-failure";
|
|
|
|
RestartSec = 5;
|
|
|
|
};
|
|
|
|
};
|
2024-08-02 14:49:18 -04:00
|
|
|
|
2024-06-11 21:16:05 -04:00
|
|
|
xdg.portal = {
|
|
|
|
enable = true;
|
|
|
|
configPackages =
|
2024-07-03 00:40:04 -04:00
|
|
|
lib.optional (config.ar.home.desktop.hyprland.enable) pkgs.xdg-desktop-portal-hyprland;
|
2024-06-11 21:16:05 -04:00
|
|
|
extraPortals =
|
2024-07-13 17:21:10 -04:00
|
|
|
[pkgs.xdg-desktop-portal-gtk]
|
|
|
|
++ lib.optional (config.ar.home.desktop.hyprland.enable) pkgs.xdg-desktop-portal-hyprland;
|
2024-06-11 21:16:05 -04:00
|
|
|
};
|
2024-05-27 16:07:29 -04:00
|
|
|
};
|
|
|
|
}
|