diff options
author | sefidel <contact@sefidel.net> | 2023-10-21 20:15:58 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2023-10-21 20:15:58 +0900 |
commit | 1a882ca77964e9b6aab331326265ea1fc2083d81 (patch) | |
tree | e47031b19c2ebd93f2b476fea24f566d8595e396 /modules | |
parent | e063023e92d52dafdcf60513071b24a0c3b16470 (diff) | |
download | nixrc-1a882ca77964e9b6aab331326265ea1fc2083d81.tar.gz nixrc-1a882ca77964e9b6aab331326265ea1fc2083d81.zip |
feat(modules/trayscale): init
Diffstat (limited to 'modules')
-rw-r--r-- | modules/trayscale.nix | 22 |
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"; + }; + }; +} + |