mirror of
https://git.oat.zone/dark-firepit/dotfiles
synced 2024-04-27 14:25: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.swayidle;
|
|
|
|
in {
|
|
options.modules.desktop.services.swayidle = {
|
|
enable = mkOption {
|
|
type = types.bool;
|
|
default = false;
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
environment.systemPackages = with pkgs; [
|
|
swayidle
|
|
];
|
|
};
|
|
}
|