about summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-10-21 20:15:58 +0900
committersefidel <contact@sefidel.net>2023-10-21 20:15:58 +0900
commit1a882ca77964e9b6aab331326265ea1fc2083d81 (patch)
treee47031b19c2ebd93f2b476fea24f566d8595e396 /modules
parente063023e92d52dafdcf60513071b24a0c3b16470 (diff)
downloadnixrc-1a882ca77964e9b6aab331326265ea1fc2083d81.tar.gz
nixrc-1a882ca77964e9b6aab331326265ea1fc2083d81.zip
feat(modules/trayscale): init
Diffstat (limited to 'modules')
-rw-r--r--modules/trayscale.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/modules/trayscale.nix b/modules/trayscale.nix
new file mode 100644
index 0000000..2aa1e74
--- /dev/null
+++ b/modules/trayscale.nix
@@ -0,0 +1,22 @@
+{ config, lib, pkgs, ... }:
+
+# TODO: send to upstream
+{
+  meta = {
+    maintainers = lib.maintainers.sefidel;
+  };
+
+  options.programs.trayscale = {
+    enable = lib.mkEnableOption (lib.mdDoc "trayscale");
+  };
+
+  config = lib.mkIf config.programs.trayscale.enable {
+    systemd.user.services.trayscale = {
+      description = "Network manager applet";
+      wantedBy = [ "graphical-session.target" ];
+      partOf = [ "graphical-session.target" ];
+      serviceConfig.ExecStart = "${pkgs.trayscale}/bin/trayscale";
+    };
+  };
+}
+