Commit 60ee2107ca43

Vincent Demeester <vincent@sbr.pm>
2026-05-27 15:50:27
fix: resolve home-manager deprecation warnings
Adopted new defaults for gtk4.theme and xdg userDirs setSessionVariables. Renamed XDG_SCREENSHOTS_DIR key to SCREENSHOTS per updated extraConfig format.
1 parent a47138d
Changed files (2)
home
common
desktop
shell
home/common/desktop/gtk.nix
@@ -13,5 +13,6 @@
     gtk2 = {
       configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";
     };
+    gtk4.theme = null;
   };
 }
home/common/shell/xdg.nix
@@ -1,4 +1,9 @@
-{ config, lib, ... }:
+{
+  config,
+  lib,
+  options,
+  ...
+}:
 let
   desktopDirectory = config.home.homeDirectory + "/desktop";
 in
@@ -25,8 +30,11 @@ in
       videos = desktopDirectory + "/videos";
 
       extraConfig = {
-        XDG_SCREENSHOTS_DIR = "${desktopDirectory}/pictures/screenshots";
+        SCREENSHOTS = "${desktopDirectory}/pictures/screenshots";
       };
+    }
+    // lib.optionalAttrs (options.xdg.userDirs ? setSessionVariables) {
+      setSessionVariables = true;
     };
   };
 }