{ 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} ''; }; }; }