From ae4c0152194e32c514f41638315d34e98e8d525e Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Wed, 19 Jul 2023 00:59:19 +0300 Subject: [PATCH] transmission --- hosts/sakotop/configuration.nix | 1 + modules/desktop/apps/default.nix | 1 + modules/desktop/apps/transmission/default.nix | 17 +++++++++++++++++ 3 files changed, 19 insertions(+) create mode 100644 modules/desktop/apps/transmission/default.nix diff --git a/hosts/sakotop/configuration.nix b/hosts/sakotop/configuration.nix index 84402545..4108dc1f 100644 --- a/hosts/sakotop/configuration.nix +++ b/hosts/sakotop/configuration.nix @@ -29,6 +29,7 @@ nemo.enable = true; keepassxc.enable = true; nicotineplus.enable = true; + transmission.enable = true; }; chat = { discord.enable = true; diff --git a/modules/desktop/apps/default.nix b/modules/desktop/apps/default.nix index 81cecc0b..b39f4fb5 100644 --- a/modules/desktop/apps/default.nix +++ b/modules/desktop/apps/default.nix @@ -4,5 +4,6 @@ ./nicotineplus ./kdeconnect ./nemo + ./transmission ]; } diff --git a/modules/desktop/apps/transmission/default.nix b/modules/desktop/apps/transmission/default.nix new file mode 100644 index 00000000..b611338b --- /dev/null +++ b/modules/desktop/apps/transmission/default.nix @@ -0,0 +1,17 @@ +{ outputs, options, config, lib, pkgs, ...}: +with lib; +let + cfg = config.modules.example; +in +{ + options.modules.example = { + enable = mkEnableOption false; + }; + + config = mkIf cfg.enable { + #TODO(sako):: figure out service + users.users.sako.packages = with pkgs; [ + transmission-gtk + ]; + }; +}