diff options
author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2024-05-02 16:29:25 +0200 |
---|---|---|
committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2024-06-08 21:26:28 +0200 |
commit | b939c54015966dba44d1acdea33c1915f42de018 (patch) | |
tree | f85a50e6ac546991ba84c015259579abf7ad900c /nixos/modules/services/x11 | |
parent | 2bab70395395eebb456943e9dceaa66fca6e4bb3 (diff) |
nixos/gdk-pixbuf: move out of xserver
Diffstat (limited to 'nixos/modules/services/x11')
-rw-r--r-- | nixos/modules/services/x11/desktop-managers/plasma5.nix | 2 | ||||
-rw-r--r-- | nixos/modules/services/x11/desktop-managers/xfce.nix | 2 | ||||
-rw-r--r-- | nixos/modules/services/x11/gdk-pixbuf.nix | 28 |
3 files changed, 2 insertions, 30 deletions
diff --git a/nixos/modules/services/x11/desktop-managers/plasma5.nix b/nixos/modules/services/x11/desktop-managers/plasma5.nix index 7d80b9b2641c3..53d3b91bfa17c 100644 --- a/nixos/modules/services/x11/desktop-managers/plasma5.nix +++ b/nixos/modules/services/x11/desktop-managers/plasma5.nix @@ -327,7 +327,7 @@ in }; # Enable GTK applications to load SVG icons - services.xserver.gdk-pixbuf.modulePackages = [ pkgs.librsvg ]; + programs.gdk-pixbuf.modulePackages = [ pkgs.librsvg ]; fonts.packages = with pkgs; [ cfg.notoPackage hack-font ]; fonts.fontconfig.defaultFonts = { diff --git a/nixos/modules/services/x11/desktop-managers/xfce.nix b/nixos/modules/services/x11/desktop-managers/xfce.nix index 85d0d199de3f2..727802f3a63e2 100644 --- a/nixos/modules/services/x11/desktop-managers/xfce.nix +++ b/nixos/modules/services/x11/desktop-managers/xfce.nix @@ -153,7 +153,7 @@ in }]; services.xserver.updateDbusEnvironment = true; - services.xserver.gdk-pixbuf.modulePackages = [ pkgs.librsvg ]; + programs.gdk-pixbuf.modulePackages = [ pkgs.librsvg ]; # Enable helpful DBus services. services.udisks2.enable = true; diff --git a/nixos/modules/services/x11/gdk-pixbuf.nix b/nixos/modules/services/x11/gdk-pixbuf.nix deleted file mode 100644 index 9e89d9f96c4af..0000000000000 --- a/nixos/modules/services/x11/gdk-pixbuf.nix +++ /dev/null @@ -1,28 +0,0 @@ -{ config, lib, pkgs, ... }: - -let - cfg = config.services.xserver.gdk-pixbuf; - - loadersCache = pkgs.gnome._gdkPixbufCacheBuilder_DO_NOT_USE { - extraLoaders = lib.unique (cfg.modulePackages); - }; -in - -{ - options = { - services.xserver.gdk-pixbuf.modulePackages = lib.mkOption { - type = lib.types.listOf lib.types.package; - default = [ ]; - description = "Packages providing GDK-Pixbuf modules, for cache generation."; - }; - }; - - # If there is any package configured in modulePackages, we generate the - # loaders.cache based on that and set the environment variable - # GDK_PIXBUF_MODULE_FILE to point to it. - config = lib.mkIf (cfg.modulePackages != []) { - environment.sessionVariables = { - GDK_PIXBUF_MODULE_FILE = "${loadersCache}"; - }; - }; -} |