Added swaylock config
This commit is contained in:
parent
20c315adca
commit
e557b36cee
22
modules/desktop/addons/swaylock/default.nix
Normal file
22
modules/desktop/addons/swaylock/default.nix
Normal 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 = {};
|
||||
};
|
||||
}
|
|
@ -30,9 +30,9 @@ in {
|
|||
gammastep.enable = true;
|
||||
mako.enable = true;
|
||||
rofi.enable = true;
|
||||
swaylock.enable = true;
|
||||
waybar.enable = true;
|
||||
|
||||
|
||||
# TODO
|
||||
# playerctl
|
||||
# light
|
||||
|
|
Loading…
Reference in a new issue