From 10a63f585d3acd46e630235f59a882402d68e04f Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Mon, 24 May 2021 22:09:58 +0200 Subject: [PATCH 1/8] mako: Remove notification inhibitor Upstream wants to implement modes, which collide with the patch that I used. --- pkgs/default.nix | 11 ----------- users/simon/modules/sway.nix | 36 ------------------------------------ 2 files changed, 47 deletions(-) diff --git a/pkgs/default.nix b/pkgs/default.nix index 4637d4b..f14a652 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -29,17 +29,6 @@ in ]; }); - # TODO: Remove patch once mako > 1.4.1 is released and in nixpkgs - mako = prev.mako.overrideAttrs (o: o // { - patches = [ - # Adds makoctl set - (prev.fetchpatch { - url = "https://github.com/emersion/mako/commit/782ef66b04d5d927fe19254be175e0b5ddff343f.patch"; - sha256 = "1qjaxhf11fyysmi9l8vwrz2vag3lcbllx8y8v2fgg3p52a7cwdjs"; - }) - ]; - }); - # TODO: Remove when pavucontrol > 4.0 is released pavucontrol = prev.pavucontrol.overrideAttrs (o: o // { patches = [ diff --git a/users/simon/modules/sway.nix b/users/simon/modules/sway.nix index fea88a2..37b7e41 100644 --- a/users/simon/modules/sway.nix +++ b/users/simon/modules/sway.nix @@ -387,37 +387,6 @@ lib.mkIf nixosConfig.sbruder.gui.enable { deactivated = " "; }; }; - "custom/notification_inhibitor" = { - exec = pkgs.writeShellScript "notification-inhibitor-watch-state" '' - set -euo pipefail - (echo; ${pkgs.inotify-tools}/bin/inotifywait -m -e close_write ${lib.escapeShellArg makoInhibitStateFile} 2>/dev/null) \ - | (while read line; do - if [ "$(${pkgs.coreutils}/bin/cat ${lib.escapeShellArg makoInhibitStateFile})" = "1" ]; then - echo '{"alt": "active", "class": "active"}' - else - echo '{"alt": "inactive", "class": "inactive"}' - fi - done) - ''; - return-type = "json"; - format = "{icon}"; - format-icons = { - active = "${lrm}ﮖ "; - inactive = "${lrm}ﮗ "; - }; - tooltip = false; - on-click = pkgs.writeShellScript "toggle-notification-inhibit" '' - set -e - current_state="$(${pkgs.coreutils}/bin/cat ${lib.escapeShellArg makoInhibitStateFile})" - if [ "$current_state" = "0" ]; then - ${pkgs.mako}/bin/makoctl set invisible=true - echo 1 > ${lib.escapeShellArg makoInhibitStateFile} - else - ${pkgs.mako}/bin/makoctl set invisible=false - echo 0 > ${lib.escapeShellArg makoInhibitStateFile} - fi - ''; - }; backlight = { format = "{percent}% {icon}"; format-icons = [ " " " " " " " " " " " " " " ]; @@ -574,11 +543,6 @@ lib.mkIf nixosConfig.sbruder.gui.enable { Install.WantedBy = [ "sway-session.target" ]; Service = { - ExecStartPre = toString (pkgs.writeShellScript "reset-mako-inhibit-state" '' - set -e - ${pkgs.coreutils}/bin/mkdir -p "$(${pkgs.coreutils}/bin/dirname ${lib.escapeShellArg makoInhibitStateFile})" - echo 0 > ${lib.escapeShellArg makoInhibitStateFile} - ''); ExecStart = "${pkgs.mako}/bin/mako"; Restart = "on-failure"; }; -- 2.42.0 From 7450828b6375b04a471dd8557feabb54c5b3a1ea Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Mon, 24 May 2021 22:10:55 +0200 Subject: [PATCH 2/8] fonts: Do not enable X11 fonts dir --- modules/fonts.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/fonts.nix b/modules/fonts.nix index fdf3ba4..633d70b 100644 --- a/modules/fonts.nix +++ b/modules/fonts.nix @@ -17,7 +17,6 @@ lib.mkIf config.sbruder.gui.enable { ]; enableDefaultFonts = true; - enableFontDir = true; fontconfig = { defaultFonts = { -- 2.42.0 From ad0748ba1b89965c167c705999828e92fa890ae7 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Mon, 24 May 2021 22:12:57 +0200 Subject: [PATCH 3/8] Use gammastep instead of redshift --- users/simon/modules/sway.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/users/simon/modules/sway.nix b/users/simon/modules/sway.nix index 37b7e41..e413e2b 100644 --- a/users/simon/modules/sway.nix +++ b/users/simon/modules/sway.nix @@ -372,10 +372,10 @@ lib.mkIf nixosConfig.sbruder.gui.enable { }; "custom/redshift" = { exec = watchUserUnitState - "redshift" + "gammastep" { class = "active"; } { class = "inactive"; }; - on-click = toggleUserUnitState "redshift"; + on-click = toggleUserUnitState "gammastep"; return-type = "json"; format = ""; tooltip = false; @@ -582,10 +582,8 @@ lib.mkIf nixosConfig.sbruder.gui.enable { }; }; - services.redshift = { + services.gammastep = { enable = true; - package = pkgs.redshift-wlr; - extraOptions = [ "-v" "-m" "wayland" ]; latitude = "49.52"; longitude = "10.17"; temperature = { -- 2.42.0 From 8fd6c787d221c0691eb21b64a0fb04f2093208e2 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Mon, 24 May 2021 22:12:33 +0200 Subject: [PATCH 4/8] WIP: Update to 21.05 --- flake.lock | 16 ++++++++-------- flake.nix | 4 ++-- machines/fuuko/services/binary-cache.nix | 2 +- machines/fuuko/services/drone/runner-exec.nix | 2 +- machines/fuuko/services/drone/server.nix | 2 +- machines/nunotaba/configuration.nix | 4 ++++ machines/sayuri/configuration.nix | 4 ++++ machines/sayuri/hardware-configuration.nix | 5 +---- pkgs/default.nix | 11 ----------- users/simon/modules/mpd.nix | 1 - users/simon/modules/programs.nix | 12 ++++++------ users/simon/modules/sway.nix | 14 ++++++-------- users/simon/modules/youtube-dl.nix | 16 ++++++++-------- users/simon/modules/ytcc.nix | 2 +- 14 files changed, 43 insertions(+), 52 deletions(-) diff --git a/flake.lock b/flake.lock index 03429fd..0c9cd4e 100644 --- a/flake.lock +++ b/flake.lock @@ -91,16 +91,16 @@ ] }, "locked": { - "lastModified": 1617824794, - "narHash": "sha256-UGkvzx0nIXHhNq/KwJLjXvKAQRE2V33MuX+UirvqrkQ=", + "lastModified": 1621794721, + "narHash": "sha256-JXfTSZUu9EVbT9D/MFsx0cXfa8bw1NFCzIxZ7gO73Uo=", "owner": "nix-community", "repo": "home-manager", - "rev": "2aa20ae969f2597c4df10a094440a66e9d7f8c86", + "rev": "90493027e33ba9eb3f50dc1da365d0e4ca31bf14", "type": "github" }, "original": { "owner": "nix-community", - "ref": "release-20.09", + "ref": "release-21.05", "repo": "home-manager", "type": "github" } @@ -187,16 +187,16 @@ }, "nixpkgs": { "locked": { - "lastModified": 1621718065, - "narHash": "sha256-2xw+iyUzV3blVq0EQjL2Qhzpp3r9uCLzYQns4nW7m7Y=", + "lastModified": 1622104865, + "narHash": "sha256-TY2wQE1m8nhjHTJ0lDL8ZUb9lA7Pw2WD2+bOiIhSqcE=", "owner": "nixos", "repo": "nixpkgs", - "rev": "ac60476ed94fd5424d9f3410c438825f793a8cbb", + "rev": "676ddafd3dbdc8dd95471df84bc5198d2d37d241", "type": "github" }, "original": { "owner": "nixos", - "ref": "nixos-20.09", + "ref": "release-21.05", "repo": "nixpkgs", "type": "github" } diff --git a/flake.nix b/flake.nix index 15a1860..3e0b568 100644 --- a/flake.nix +++ b/flake.nix @@ -4,10 +4,10 @@ inputs = { flake-utils.url = "github:numtide/flake-utils"; - nixpkgs.url = "github:nixos/nixpkgs/nixos-20.09"; + nixpkgs.url = "github:nixos/nixpkgs/release-21.05"; # FIXME: nixos- nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable"; - home-manager.url = "github:nix-community/home-manager/release-20.09"; + home-manager.url = "github:nix-community/home-manager/release-21.05"; home-manager.inputs.nixpkgs.follows = "nixpkgs"; krops.url = "github:Mic92/krops"; diff --git a/machines/fuuko/services/binary-cache.nix b/machines/fuuko/services/binary-cache.nix index d932605..c66f562 100644 --- a/machines/fuuko/services/binary-cache.nix +++ b/machines/fuuko/services/binary-cache.nix @@ -70,7 +70,7 @@ in systemd.services.nar-serve = let # TODO: remove once new version is released and in nixpkgs - nar-serve = pkgs.unstable.nar-serve.overrideAttrs (o: o // { + nar-serve = pkgs.nar-serve.overrideAttrs (o: o // { version = "unstable-2021-04-08"; src = pkgs.fetchFromGitHub { diff --git a/machines/fuuko/services/drone/runner-exec.nix b/machines/fuuko/services/drone/runner-exec.nix index 212e99f..cebfa90 100644 --- a/machines/fuuko/services/drone/runner-exec.nix +++ b/machines/fuuko/services/drone/runner-exec.nix @@ -47,7 +47,7 @@ in "/etc/static" "/nix" ]; - ExecStart = "${pkgs.unstable.drone-runner-exec}/bin/drone-runner-exec"; + ExecStart = "${pkgs.drone-runner-exec}/bin/drone-runner-exec"; User = user; Group = group; }; diff --git a/machines/fuuko/services/drone/server.nix b/machines/fuuko/services/drone/server.nix index 6ab1266..f5fded6 100644 --- a/machines/fuuko/services/drone/server.nix +++ b/machines/fuuko/services/drone/server.nix @@ -28,7 +28,7 @@ in drone-rpc-environment.path drone-server-environment.path ]; - ExecStart = "${pkgs.unstable.drone}/bin/drone-server"; + ExecStart = "${pkgs.drone}/bin/drone-server"; Restart = "on-failure"; User = user; Group = group; diff --git a/machines/nunotaba/configuration.nix b/machines/nunotaba/configuration.nix index fdd9b2e..2b7ecd8 100644 --- a/machines/nunotaba/configuration.nix +++ b/machines/nunotaba/configuration.nix @@ -22,6 +22,10 @@ enable = true; client.enable = true; }; + services.privoxy = { + enable = true; + enableTor = true; + }; networking.hostName = "nunotaba"; diff --git a/machines/sayuri/configuration.nix b/machines/sayuri/configuration.nix index 72928c7..2d12cf7 100644 --- a/machines/sayuri/configuration.nix +++ b/machines/sayuri/configuration.nix @@ -27,6 +27,10 @@ enable = true; client.enable = true; }; + services.privoxy = { + enable = true; + enableTor = true; + }; networking.hostName = "sayuri"; diff --git a/machines/sayuri/hardware-configuration.nix b/machines/sayuri/hardware-configuration.nix index f3b91e5..8d88acd 100644 --- a/machines/sayuri/hardware-configuration.nix +++ b/machines/sayuri/hardware-configuration.nix @@ -6,9 +6,6 @@ ]; boot = { - # async trim on btrfs requires kernel 5.6+ - # TODO: Remove with kernel 5.6+ in stable - kernelPackages = pkgs.linuxPackages_latest; kernelModules = [ "kvm-intel" ]; extraModulePackages = [ ]; loader.grub.device = "/dev/disk/by-id/nvme-Samsung_SSD_970_EVO_Plus_250GB_S4EUNJ0N412342P"; @@ -78,7 +75,7 @@ environment.systemPackages = with pkgs; [ clinfo - unstable.radeontop + radeontop rocm-smi ]; } diff --git a/pkgs/default.nix b/pkgs/default.nix index f14a652..48945fa 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -18,17 +18,6 @@ in # version that works in my setup prometheus-fritzbox-exporter = callPackage ./prometheus-fritzbox-exporter { }; - # FIXME: 21.05: Move to home-manager module package attribute - mpv-unwrapped = prev.mpv-unwrapped.overrideAttrs (o: o // { - patches = [ - # FIXME: 21.05: Remove since it has mpv 0.33 - (prev.fetchpatch { - url = "https://github.com/mpv-player/mpv/commit/43c13e5ea23230edca38426d4a9eed049a70890e.patch"; - sha256 = "0g73ws36cs2hfzqck6xiaimj5yd5hz68b4wf3qayyv4nrf5sz02c"; - }) - ]; - }); - # TODO: Remove when pavucontrol > 4.0 is released pavucontrol = prev.pavucontrol.overrideAttrs (o: o // { patches = [ diff --git a/users/simon/modules/mpd.nix b/users/simon/modules/mpd.nix index d6b50e1..7b46243 100644 --- a/users/simon/modules/mpd.nix +++ b/users/simon/modules/mpd.nix @@ -7,7 +7,6 @@ lib.mkIf nixosConfig.sbruder.gui.enable { enable = true; musicDirectory = "~/Music"; network.listenAddress = "${config.services.mpd.dataDir}/socket"; - package = pkgs.unstable.mpd; extraConfig = '' zeroconf_enabled "no" diff --git a/users/simon/modules/programs.nix b/users/simon/modules/programs.nix index ee56595..bf0cd19 100644 --- a/users/simon/modules/programs.nix +++ b/users/simon/modules/programs.nix @@ -19,7 +19,7 @@ let }; # waifu2x-converter-cpp wrapper for real life images waifu2x-photo = pkgs.writeShellScriptBin "waifu2x-photo" '' - ${pkgs.unstable.waifu2x-converter-cpp}/bin/waifu2x-converter-cpp \ + ${pkgs.waifu2x-converter-cpp}/bin/waifu2x-converter-cpp \ --model-dir ${waifu2x-photo-models} \ $@ ''; @@ -57,7 +57,7 @@ in # network tools dnsutils # dig - unstable.dogdns # better dig + dogdns # better dig gatling # high performance web server sshfs # mount remote host vnstat # client for vnstatd @@ -77,7 +77,7 @@ in # end user programs apacheHttpd # for htpasswd - unstable.libqalculate # flexible calculator for humans + libqalculate # flexible calculator for humans taskwarrior # todo list manager # passwords @@ -113,8 +113,8 @@ in ffmpeg-full # A/V multitool mediainfo # show information about media files mkvtoolnix-cli # matroska (de-)muxing - unstable.streamlink # video stream downloader - unstable.waifu2x-converter-cpp # super-resolution for anime-style images + streamlink # video stream downloader + waifu2x-converter-cpp # super-resolution for anime-style images waifu2x-photo # waifu2x-converter-cpp for real life photos # audio @@ -176,7 +176,7 @@ in antimicroX # gamepad to keyboard/mouse mapping filezilla # ftp client gparted # gui for parted - unstable.qalculate-gtk # flexible calculator + qalculate-gtk # flexible calculator scrcpy # stream/control android phones over adb wev # wayland event monitor wl-clipboard # not really gui, but cli tool to manage wayland clipboard diff --git a/users/simon/modules/sway.nix b/users/simon/modules/sway.nix index e413e2b..5458d3f 100644 --- a/users/simon/modules/sway.nix +++ b/users/simon/modules/sway.nix @@ -29,10 +29,6 @@ lib.mkIf nixosConfig.sbruder.gui.enable { wayland.windowManager.sway = { enable = true; - # TODO: remove with 21.05 - package = pkgs.unstable.sway; - xwayland = false; - config = { modifier = "Mod4"; @@ -202,7 +198,11 @@ lib.mkIf nixosConfig.sbruder.gui.enable { urgent = rec { border = "#073642"; background = "#dc322f"; text = "#073642"; indicator = "#2aa198"; childBorder = background; }; }; - fonts = [ "monospace 10" ]; + fonts = { + names = [ "monospace" ]; + style = "Regular"; + size = 10.0; + }; }; extraConfig = '' @@ -282,7 +282,6 @@ lib.mkIf nixosConfig.sbruder.gui.enable { brightnessctl # control screen brightness sway-contrib.grimshot # screenshots wdisplays # graphical output manager - pkgs.unstable.xwayland # TODO: remove with 21.05 ]; xdg.configFile."swaynag/config".text = @@ -517,8 +516,7 @@ lib.mkIf nixosConfig.sbruder.gui.enable { Service = { # ensure sway is already started, otherwise workspaces will not work ExecStartPre = "${config.wayland.windowManager.sway.package}/bin/swaymsg"; - # FIXME: Remove override with 21.05 (https://github.com/NixOS/nixpkgs/pull/98490) - ExecStart = "${pkgs.waybar.override { pulseSupport = true; }}/bin/waybar"; + ExecStart = "${pkgs.waybar}/bin/waybar"; ExecReload = "${pkgs.utillinux}/bin/kill -SIGUSR2 $MAINPID"; Restart = "on-failure"; RestartSec = "1s"; diff --git a/users/simon/modules/youtube-dl.nix b/users/simon/modules/youtube-dl.nix index 6fa2e1d..924da79 100644 --- a/users/simon/modules/youtube-dl.nix +++ b/users/simon/modules/youtube-dl.nix @@ -1,13 +1,13 @@ { lib, pkgs, ... }: let - formats = (lib.flatten - (lib.crossLists (x: y: [ "${x}+${y}" ]) - [ - [ "bestvideo[vcodec^=av01]" "bestvideo[vcodec^=vp9]" "bestvideo[vcodec^=avc1]" "bestvideo" ] - [ "bestaudio[acodec^=opus]" "bestaudio[acodec^=mp4a]" "bestaudio" ] - ])) ++ [ - "best" - ]; + # zAudioFormat because a better video format is preferred and + # cartesianProductOfSets cycles through the attributes in lexicographic order + formats = (map + ({ videoFormat, zAudioFormat }: "${videoFormat}+${zAudioFormat}") + (lib.cartesianProductOfSets { + videoFormat = [ "bestvideo[vcodec^=av01]" "bestvideo[vcodec^=vp9]" "bestvideo[vcodec^=avc1]" "bestvideo" ]; + zAudioFormat = [ "bestaudio[acodec^=opus]" "bestaudio[acodec^=mp4a]" "bestaudio" ]; + })) ++ [ "best" ]; options = { format = lib.concatStringsSep "/" formats; diff --git a/users/simon/modules/ytcc.nix b/users/simon/modules/ytcc.nix index a62888b..4b07946 100644 --- a/users/simon/modules/ytcc.nix +++ b/users/simon/modules/ytcc.nix @@ -17,5 +17,5 @@ }; }; - home.packages = with pkgs; [ unstable.ytcc ]; + home.packages = with pkgs; [ ytcc ]; } -- 2.42.0 From 847a8207066602be2a04fa8b91f56185c5c6de9f Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Mon, 24 May 2021 22:13:15 +0200 Subject: [PATCH 5/8] zsh: Explicitly disable prompt in user config Otherwise starship does not work in 21.05. --- users/simon/modules/zsh.nix | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/users/simon/modules/zsh.nix b/users/simon/modules/zsh.nix index e06b442..f11485f 100644 --- a/users/simon/modules/zsh.nix +++ b/users/simon/modules/zsh.nix @@ -64,17 +64,22 @@ in envExtra = '' export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=on" ''; - initExtra = lib.mkAfter '' - eval $(${pkgs.coreutils}/bin/dircolors -b ${dircolors-solarized}/dircolors.ansi-universal) + initExtra = lib.mkMerge [ + (lib.mkBefore '' + prompt off # collides with starship + '') + (lib.mkAfter '' + eval $(${pkgs.coreutils}/bin/dircolors -b ${dircolors-solarized}/dircolors.ansi-universal) - # no sad smiley (starship shows exit status) - zstyle ':prompt:grml:right:setup' items + # no sad smiley (starship shows exit status) + zstyle ':prompt:grml:right:setup' items - # do not glob # (conflicts with nix flakes) - disable -p '#' + # do not glob # (conflicts with nix flakes) + disable -p '#' - source ${../files/zsh/pass-wrappers.zsh} - ''; + source ${../files/zsh/pass-wrappers.zsh} + '') + ]; }; }; } -- 2.42.0 From aae248ca370e7e8587d92a797075fd78f92e1be4 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Thu, 27 May 2021 11:34:49 +0200 Subject: [PATCH 6/8] nunotaba: Use performance cpuFreqGovernor With kernel 5.10 powersave is stuck at 798 MHz for some reason. --- machines/nunotaba/hardware-configuration.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/machines/nunotaba/hardware-configuration.nix b/machines/nunotaba/hardware-configuration.nix index c075a77..297d6c7 100644 --- a/machines/nunotaba/hardware-configuration.nix +++ b/machines/nunotaba/hardware-configuration.nix @@ -40,7 +40,7 @@ { device = "/dev/disk/by-uuid/b9ad2d56-fee0-49df-98c1-00d93d991b9f"; } ]; - powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; + powerManagement.cpuFreqGovernor = lib.mkDefault "performance"; # Most of the time I want to use both screens at the same time and suspend it # regularily by closing the lid -- 2.42.0 From 34fb5f0b0b6bf93d1645769a519fd759bc0c3cf9 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Thu, 27 May 2021 15:30:37 +0200 Subject: [PATCH 7/8] nunotaba: Reinstall on btrfs filesystem --- machines/nunotaba/hardware-configuration.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/machines/nunotaba/hardware-configuration.nix b/machines/nunotaba/hardware-configuration.nix index 297d6c7..9587eaa 100644 --- a/machines/nunotaba/hardware-configuration.nix +++ b/machines/nunotaba/hardware-configuration.nix @@ -25,9 +25,9 @@ fileSystems = { "/" = { - device = "/dev/disk/by-uuid/8937d1ac-23cb-456f-9c16-e348acc66bb7"; - fsType = "ext4"; - options = [ "discard" "noatime" ]; + device = "/dev/disk/by-uuid/c3ab2182-18b3-4cc6-a5b3-3fef32222aef"; + fsType = "btrfs"; + options = [ "discard=async" "noatime" "compress=zstd" ]; }; "/boot" = { -- 2.42.0 From 55f580138bafde2c9c9694efe3fc3858dcb3ef76 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Fri, 28 May 2021 13:04:58 +0200 Subject: [PATCH 8/8] mpv: Update gallery-view plugin --- users/simon/modules/mpv.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/users/simon/modules/mpv.nix b/users/simon/modules/mpv.nix index fb227e5..1628fa9 100644 --- a/users/simon/modules/mpv.nix +++ b/users/simon/modules/mpv.nix @@ -35,8 +35,8 @@ let gallery-view = pkgs.fetchFromGitHub { owner = "occivink"; repo = "mpv-gallery-view"; - rev = "5139d346de67e8dbee8c8983777026502d6bc627"; - sha256 = "1xcl31rpb6kp479kil4srkclw9ly565zavr65ary9s8795ygfcrs"; + rev = "eca93f9ff2b8716ac750824c9980f6eb766756cf"; + sha256 = "01ys2nd166lvcppnrch8ls5n6jhrha2z0jcn9hnfip63gvv2c5gn"; meta.license = lib.licenses.gpl2; }; @@ -220,7 +220,7 @@ in xdg.configFile."mpv/scripts/gallery-thumbgen-1.lua".source = "${gallery-view}/scripts/gallery-thumbgen.lua"; xdg.configFile."mpv/scripts/gallery-thumbgen-2.lua".source = "${gallery-view}/scripts/gallery-thumbgen.lua"; xdg.configFile."mpv/scripts/gallery-thumbgen-3.lua".source = "${gallery-view}/scripts/gallery-thumbgen.lua"; - xdg.configFile."mpv/scripts/lib/gallery.lua".source = "${gallery-view}/scripts/lib/gallery.lua"; + xdg.configFile."mpv/scripts/lib.disable/gallery.lua".source = "${gallery-view}/scripts/lib.disable/gallery.lua"; xdg.configFile."mpv/scripts/playlist-view.lua".source = "${gallery-view}/scripts/playlist-view.lua"; xdg.configFile."mpv/script-opts/playlist_view.conf".text = '' thumbs_dir=${config.xdg.cacheHome}/thumbnails/mpv -- 2.42.0