fix(gtklock): fix modules not loaded

This commit is contained in:
matt1432 2023-10-01 09:22:32 -04:00
parent 3efd1626d4
commit dcfd8d81e9
3 changed files with 5 additions and 8 deletions

View file

@ -1,4 +0,0 @@
[main]
modules=/nix/var/nix/profiles/system/sw/lib/gtklock/powerbar-module.so;/nix/var/nix/profiles/system/sw/lib/gtklock/playerctl-module.so
#;/nix/var/nix/profiles/system/sw/lib/gtklock/userinfo-module.so

View file

@ -1,4 +1,4 @@
{ config, ... }:
{ config, pkgs, ... }:
let
configDir = "/home/matt/.nix/config";
@ -8,7 +8,10 @@ in
xdg.configFile = {
"swayosd/style.css".source = config.lib.file.mkOutOfStoreSymlink "${configDir}/swayosd/style.css";
"gtklock/config.ini".source = config.lib.file.mkOutOfStoreSymlink "${configDir}/gtklock/config.ini";
"gtklock/config.ini".source = pkgs.writeText "config.ini" ''
[main]
modules=${pkgs.gtklock-powerbar-module}/lib/gtklock/powerbar-module.so;${pkgs.gtklock-playerctl-module}/lib/gtklock/playerctl-module.so
'';
"gtklock/style.css".source = config.lib.file.mkOutOfStoreSymlink "${configDir}/gtklock/style.css";
"ripgrep".source = config.lib.file.mkOutOfStoreSymlink "${configDir}/ripgrep";

View file

@ -136,8 +136,6 @@
wl-clipboard
cliphist
gtklock
gtklock-playerctl-module
gtklock-powerbar-module
grim
slurp
swappy