forked from poz/niksos
refactor: move pam lock thing to lock modules
This commit is contained in:
parent
63c49e592c
commit
516399a36e
4 changed files with 8 additions and 12 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue