From 1a882ca77964e9b6aab331326265ea1fc2083d81 Mon Sep 17 00:00:00 2001 From: sefidel Date: Sat, 21 Oct 2023 20:15:58 +0900 Subject: feat(modules/trayscale): init --- modules/trayscale.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 modules/trayscale.nix 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"; + }; + }; +} + -- cgit 1.4.1