change a few things around

This commit is contained in:
Sakooooo 2023-07-30 02:44:27 +03:00
parent 0edaee3fb7
commit de5e6fdd88
Signed by: sako
GPG key ID: 3FD715D87D7725E0
3 changed files with 30 additions and 15 deletions

View file

@ -29,10 +29,7 @@
nemo.enable = true;
keepassxc.enable = true;
nicotineplus.enable = true;
transmission = {
enable = true;
tui = true;
};
transmission.enable = true;
};
chat = {
discord.enable = true;

View file

@ -0,0 +1,27 @@
{ outputs, options, config, lib, pkgs, ...}:
with lib;
let
cfg = config.modules.desktop.apps.transmission;
in
{
options.modules.desktop.apps.transmission = {
daemon = mkEnableOption false;
};
config = mkIf cfg.daemon {
#TODO(sako):: figure out service
users.users.sako.packages = with pkgs; [
transmission
];
home-manager.users.sako = { pkgs, ...}: {
xdg.configFile = {
transmission-daemon = {
source = ../../../../config/transmission-daemon;
recursive = true;
};
};
};
};
}

View file

@ -6,6 +6,7 @@ in
{
imports = [
./remote-tui.nix
./daemon.nix
];
options.modules.desktop.apps.transmission = {
enable = mkEnableOption false;
@ -14,17 +15,7 @@ in
config = mkIf cfg.enable {
#TODO(sako):: figure out service
users.users.sako.packages = with pkgs; [
transmission
transmission-gtk
];
home-manager.users.sako = { pkgs, ...}: {
xdg.configFile = {
transmission-daemon = {
source = ../../../../config/transmission-daemon;
recursive = true;
};
};
};
};
}