diff --git a/options/custom/programs/default.nix b/options/custom/programs/default.nix index 097e22d..8c2de5e 100644 --- a/options/custom/programs/default.nix +++ b/options/custom/programs/default.nix @@ -53,6 +53,7 @@ with lib; { gamescope.enable = true; #// gnome-shell.enable = true; gpg.enable = true; + #// gtklock.enable = true; hyprlock.enable = true; libreoffice.enable = true; #// librewolf.enable = true; diff --git a/options/custom/programs/gtklock.nix b/options/custom/programs/gtklock.nix new file mode 100644 index 0000000..6a9163c --- /dev/null +++ b/options/custom/programs/gtklock.nix @@ -0,0 +1,22 @@ +{ + config, + lib, + pkgs, + ... +}: +with lib; let + cfg = config.custom.programs.gtklock; +in { + options.custom.programs.gtklock = { + enable = mkOption {default = false;}; + }; + + config = mkIf cfg.enable { + # Manually create entry in PAM in lieu of official module + # https://github.com/NixOS/nixpkgs/issues/240886 + security.pam.services.gtklock = {}; + + # https://github.com/jovanlanik/gtklock + environment.systemPackages = [pkgs.gtklock]; + }; +}