niksos/modules/gui/gtklock.nix
2023-10-13 21:04:24 +02:00

24 lines
549 B
Nix

{
config,
config',
lib,
pkgs,
...
}: with lib; let
cfg = config.myOptions.programs.gtklock;
in {
options.myOptions.programs.gtklock.enable = mkEnableOption "enable gtklock";
config = mkIf cfg.enable {
home-manager.users.${config'.username} = {
home.packages = with pkgs; [
gtklock
];
xdg.configFile."gtklock/config.ini".text = ''
[main]
gtk-theme=${config.myOptions.themes.gtk.name}
'';
};
};
}