forked from poz/niksos
24 lines
549 B
Nix
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}
|
|
'';
|
|
};
|
|
};
|
|
}
|