summaryrefslogtreecommitdiff
path: root/hm/soft/swayidle.nix
diff options
context:
space:
mode:
authoradikro <adikro@disroot.org>2025-12-20 03:14:45 +0100
committeradikro <adikro@disroot.org>2025-12-20 03:14:45 +0100
commit791bc419b6dac7c70951981ef6b34cdf85828470 (patch)
tree56d0962fdf829ae942feb1344763e54dbc3c89a3 /hm/soft/swayidle.nix
parente60410393cea222b16743a1a87f29c06b9b3543b (diff)
absolutely massive rewrite, made (almost) everything modular with changes to come
Diffstat (limited to 'hm/soft/swayidle.nix')
-rw-r--r--hm/soft/swayidle.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/hm/soft/swayidle.nix b/hm/soft/swayidle.nix
new file mode 100644
index 0000000..d06c74a
--- /dev/null
+++ b/hm/soft/swayidle.nix
@@ -0,0 +1,13 @@
+{ config, lib, ... }:
+let
+ cfg = config.szpont.hm.soft.swayidle;
+in
+{
+ options.szpont.hm.soft.swayidle.enable = lib.mkEnableOption "enables swayidle";
+
+ config = lib.mkIf cfg.enable {
+ services.swayidle = {
+ enable = true;
+ };
+ };
+}