refactor: move pam lock thing to lock modules

This commit is contained in:
jacekpoz 2023-11-25 19:16:22 +01:00
parent 63c49e592c
commit 516399a36e
No known key found for this signature in database
GPG key ID: 94E812A8B12AAE3C
4 changed files with 8 additions and 12 deletions

View file

@ -89,12 +89,6 @@
programs.dconf.enable = true;
# https://github.com/NixOS/nixpkgs/issues/158025
security.pam.services = {
swaylock.text = "auth include login";
gtklock.text = "auth include login";
};
security.sudo.package = pkgs.sudo.override { withInsults = true; };
security.polkit.enable = true;

View file

@ -118,12 +118,6 @@
programs.dconf.enable = true;
# https://github.com/NixOS/nixpkgs/issues/158025
security.pam.services = {
swaylock.text = "auth include login";
gtklock.text = "auth include login";
};
security.sudo.package = pkgs.sudo.override { withInsults = true; };
security.polkit.enable = true;

View file

@ -10,6 +10,10 @@ in {
options.myOptions.programs.gtklock.enable = mkEnableOption "enable gtklock";
config = mkIf cfg.enable {
# https://github.com/NixOS/nixpkgs/issues/158025
security.pam.services.gtklock.text = "auth include login";
home-manager.users.${config'.username} = {
home.packages = with pkgs; [
gtklock

View file

@ -11,6 +11,10 @@ in {
options.myOptions.programs.swaylock.enable = mkEnableOption "enable swaylock";
config = mkIf cfg.enable {
# https://github.com/NixOS/nixpkgs/issues/158025
security.pam.services.swaylock.text = "auth include login";
home-manager.users.${config'.username} = {
programs.swaylock = {
enable = true;