nixcfg/homeManagerModules/apps/swaylock/default.nix

24 lines
416 B
Nix
Raw Permalink Normal View History

{
config,
lib,
pkgs,
...
}: let
cfg = config.ar.home;
in {
config = lib.mkIf cfg.apps.swaylock.enable {
home.packages = with pkgs; [swaylock];
programs.swaylock = {
enable = true;
settings = {
daemonize = true;
indicator-thickness = 20;
indicator-radius = 120;
indicator-idle-visible = true;
indicator-caps-lock = true;
};
};
};
}