1
1
Fork 0

gtklock: initial disabled program

Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
Myned 2024-12-26 00:24:32 -05:00
parent 9bb40136c3
commit 4f0804770f
Signed by: Myned
GPG key ID: C7224454F7881A34
2 changed files with 23 additions and 0 deletions

View file

@ -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;

View file

@ -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];
};
}