mirror of
https://git.oat.zone/dark-firepit/dotfiles
synced 2024-04-27 23:35:05 +02:00
21 lines
345 B
Nix
21 lines
345 B
Nix
{ config, lib, pkgs, options, ... }:
|
|
|
|
with lib;
|
|
let
|
|
cfg = config.modules.desktop.services.swaylock;
|
|
|
|
in {
|
|
options.modules.desktop.services.swaylock = {
|
|
enable = mkOption {
|
|
type = types.bool;
|
|
default = false;
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
environment.systemPackages = with pkgs; [
|
|
swaylock
|
|
];
|
|
};
|
|
}
|