nix-home/modules/services/swaylock.nix

18 lines
382 B
Nix
Raw Normal View History

2022-04-28 15:37:51 +00:00
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.services.swaylock;
in
{
options.services.swaylock = {
enable = mkEnableOption "Enable swaylock";
package = mkOption {
type = types.package;
default = pkgs.swaylock;
};
};
config = mkIf cfg.enable {
2023-03-16 17:16:21 +00:00
# security.pam.services.swaylock.text = readFile "${cfg.package}/etc/pam.d/swaylock";
2022-04-28 15:37:51 +00:00
};
}