mirror of
https://git.oat.zone/dark-firepit/dotfiles
synced 2024-05-10 01:06:09 +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
|
||
|
];
|
||
|
};
|
||
|
}
|