From 24ccd8ac6fd9c5d54729a697ee2bdc0c022fb81e Mon Sep 17 00:00:00 2001 From: Kabbone Date: Mon, 31 Oct 2022 17:01:43 +0100 Subject: [PATCH] create a kanshi service --- modules/services/kanshi.nix | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 modules/services/kanshi.nix diff --git a/modules/services/kanshi.nix b/modules/services/kanshi.nix new file mode 100644 index 0000000..15fd4b4 --- /dev/null +++ b/modules/services/kanshi.nix @@ -0,0 +1,27 @@ +# +# System notifications +# + +{ config, lib, pkgs, ... }: + +{ + services.kanshi = { + enable = true; + profiles = { + undocked = { + outputs = [ + { + criteria = "eDP-1"; + } + ]; + }; + docked = { + outputs = [ + { + criteria = "HDMI-A-1"; status = "enable"; + } + ]; + }; + }; + }; +}