Added swaylock config

This commit is contained in:
Alejandro Angulo 2023-03-26 08:36:56 -07:00
parent 20c315adca
commit e557b36cee
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6
2 changed files with 23 additions and 1 deletions

View file

@ -0,0 +1,22 @@
{
options,
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.aa.desktop.addons.swaylock;
in {
options.aa.desktop.addons.swaylock = with types; {
enable = mkEnableOption "swaylock";
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [swaylock];
# Workaround for https://github.com/NixOS/nixpkgs/issues/158025
# This comment specifically: https://github.com/NixOS/nixpkgs/issues/158025#issuecomment-1344766809
security.pam.services.swaylock = {};
};
}

View file

@ -30,9 +30,9 @@ in {
gammastep.enable = true;
mako.enable = true;
rofi.enable = true;
swaylock.enable = true;
waybar.enable = true;
# TODO
# playerctl
# light