mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-25 06:51:54 -05:00
nixos/desktop: add pam config for gtklock
This commit is contained in:
parent
7bb74d3da9
commit
c8e723b1ec
|
@ -5,9 +5,7 @@
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
config = lib.mkIf (config.ar.desktop.hyprland.enable || config.ar.desktop.sway.enable) {
|
config = lib.mkIf (config.ar.desktop.hyprland.enable || config.ar.desktop.sway.enable) {
|
||||||
programs = {
|
programs.gnupg.agent.pinentryPackage = lib.mkForce pkgs.pinentry-gnome3;
|
||||||
gnupg.agent.pinentryPackage = lib.mkForce pkgs.pinentry-gnome3;
|
|
||||||
};
|
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
dbus.packages = [pkgs.gcr];
|
dbus.packages = [pkgs.gcr];
|
||||||
|
@ -15,9 +13,8 @@
|
||||||
udev.packages = [pkgs.swayosd];
|
udev.packages = [pkgs.swayosd];
|
||||||
};
|
};
|
||||||
|
|
||||||
security.pam.services = {
|
security.pam.services = let
|
||||||
swaylock = {
|
pamConfig = ''
|
||||||
text = ''
|
|
||||||
# Account management.
|
# Account management.
|
||||||
account required pam_unix.so # unix (order 10900)
|
account required pam_unix.so # unix (order 10900)
|
||||||
|
|
||||||
|
@ -37,7 +34,9 @@
|
||||||
session required pam_env.so conffile=/etc/pam/environment readenv=0 # env (order 10100)
|
session required pam_env.so conffile=/etc/pam/environment readenv=0 # env (order 10100)
|
||||||
session required pam_unix.so # unix (order 10200)
|
session required pam_unix.so # unix (order 10200)
|
||||||
'';
|
'';
|
||||||
};
|
in {
|
||||||
|
gtklock = {text = pamConfig;};
|
||||||
|
swaylock = {text = pamConfig;};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue