summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorJakub Stachurski <j.stachurski@student.utwente.nl>2026-01-02 19:19:51 +0100
committerJakub Stachurski <j.stachurski@student.utwente.nl>2026-01-02 19:19:51 +0100
commitdca35cc9f01b47974783a2ad2f40382ceb364a09 (patch)
treed2d022774fbf1fcdedc98de8ddb23a3d3fbeb150 /modules
parentd2b6cf44a3277fd5d04bc10110d344827217e24e (diff)
Fix XDG-Desktop-Portals for real this time!
Includes fixing of some warnings and the addition of rtkit.
Diffstat (limited to 'modules')
-rw-r--r--modules/default.nix16
-rw-r--r--modules/desktop/wayland.nix8
-rw-r--r--modules/desktop/wms/hyprland.nix2
3 files changed, 12 insertions, 14 deletions
diff --git a/modules/default.nix b/modules/default.nix
index c2cb665..774b40d 100644
--- a/modules/default.nix
+++ b/modules/default.nix
@@ -53,10 +53,16 @@
};
};
- nix.gc = {
- automatic = true;
- dates = "weekly";
- options = "--delete-older-than 30d";
+ # Because NH is enabled, this needs to be disabled.
+ # nix.gc = {
+ # automatic = true;
+ # dates = "weekly";
+ # options = "--delete-older-than 30d";
+ # };
+ zramSwap = {
+ enable = true;
+ algorithm = "lz4";
+ memoryPercent = 50;
};
systemd.services.nix-daemon.serviceConfig = {
MemoryAccounting = true;
@@ -82,7 +88,7 @@
bashInteractive
coreutils
- utillinux
+ util-linux
iproute2
iputils
pciutils
diff --git a/modules/desktop/wayland.nix b/modules/desktop/wayland.nix
index 9197a4e..457a7f0 100644
--- a/modules/desktop/wayland.nix
+++ b/modules/desktop/wayland.nix
@@ -8,12 +8,6 @@
options.addons.desktop.wayland.enable = lib.mkEnableOption "Enable wayland";
config = lib.mkIf config.addons.desktop.wayland.enable {
services.displayManager.sddm.wayland.enable = true;
-
- xdg.portal = {
- enable = true;
- extraPortals = [
- pkgs.xdg-desktop-portal-gtk
- ];
- };
+ security.rtkit.enable = true;
};
}
diff --git a/modules/desktop/wms/hyprland.nix b/modules/desktop/wms/hyprland.nix
index b35881c..d339f98 100644
--- a/modules/desktop/wms/hyprland.nix
+++ b/modules/desktop/wms/hyprland.nix
@@ -42,8 +42,6 @@ in
waybar
waybar-mpris
mako
- xdg-desktop-portal-gnome
- xdg-desktop-portal-hyprland
wl-clipboard
hyprland-qt-support
];