niksos/hosts/common/optional/gtklock.nix

20 lines
452 B
Nix
Raw Normal View History

2024-10-02 18:13:28 +02:00
{
config,
pkgs,
...
}: let
inherit (config.poz.other.system) username;
in {
# https://github.com/NixOS/nixpkgs/issues/158025
security.pam.services.gtklock.text = "auth include login";
users.users.${username}.packages = [ pkgs.gtklock ];
home-manager.users.${username} = {
xdg.configFile."gtklock/config.ini".text = ''
[main]
gtk-theme=${config.poz.themes.gtk.name}
'';
};
}