Fix swayidle
This commit is contained in:
parent
3c29cd62f7
commit
55835d1367
4 changed files with 23 additions and 14 deletions
|
@ -6,17 +6,17 @@
|
|||
services.swayidle = let
|
||||
# Downgraded due to
|
||||
# https://github.com/mortie/swaylock-effects/issues/95
|
||||
swaylock-effects = pkgs.swaylock-effects.overrideAttrs (_: {
|
||||
version = "jirutka-master";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "jirutka";
|
||||
repo = "swaylock-effects";
|
||||
rev = "7c5681ce96587ce3090c6698501faeccdfdc157d";
|
||||
sha256 = "sha256-09Kq90wIIF9lPjiY2anf9MSgi/EqeXKXW1mFmhxA/aM";
|
||||
};
|
||||
});
|
||||
# swaylock-effects = pkgs.swaylock-effects.overrideAttrs (_: {
|
||||
# version = "jirutka-master";
|
||||
# src = pkgs.fetchFromGitHub {
|
||||
# owner = "jirutka";
|
||||
# repo = "swaylock-effects";
|
||||
# rev = "7c5681ce96587ce3090c6698501faeccdfdc157d";
|
||||
# sha256 = "sha256-09Kq90wIIF9lPjiY2anf9MSgi/EqeXKXW1mFmhxA/aM";
|
||||
# };
|
||||
# });
|
||||
swaylockWithArgs = pkgs.writeScriptBin "swaylockWithArgs" ''
|
||||
${swaylock-effects}/bin/swaylock \
|
||||
${pkgs.swaylock-effects}/bin/swaylock \
|
||||
--daemonize \
|
||||
--screenshots \
|
||||
--clock \
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
"ssh-initrd"
|
||||
"hercules-ci"
|
||||
"printing"
|
||||
"pam"
|
||||
]
|
||||
++ [
|
||||
./disko.nix
|
||||
|
|
|
@ -1,13 +1,15 @@
|
|||
{
|
||||
imports = [../pam];
|
||||
|
||||
services.fprintd = {
|
||||
enable = false; # temporarily disable
|
||||
};
|
||||
|
||||
security.polkit.enable = true; # TODO needed?
|
||||
|
||||
security.pam.services.swaylock.text = ''
|
||||
auth include login
|
||||
auth sufficient pam_unix.so try_first_pass likeauth nullok
|
||||
'';
|
||||
# security.pam.services.swaylock.text = ''
|
||||
# auth include login
|
||||
# auth sufficient pam_unix.so try_first_pass likeauth nullok
|
||||
# '';
|
||||
# # auth sufficient pam_fprintd.so
|
||||
}
|
||||
|
|
6
modules/pam/default.nix
Normal file
6
modules/pam/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
security.pam.services.swaylock.text = ''
|
||||
auth include login
|
||||
auth sufficient pam_unix.so try_first_pass likeauth nullok
|
||||
'';
|
||||
}
|
Loading…
Add table
Reference in a new issue