change a few things around
This commit is contained in:
parent
0edaee3fb7
commit
de5e6fdd88
3 changed files with 30 additions and 15 deletions
|
@ -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;
|
||||
|
|
27
modules/desktop/apps/transmission/daemon.nix
Normal file
27
modules/desktop/apps/transmission/daemon.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue