change a few things around
This commit is contained in:
parent
0edaee3fb7
commit
de5e6fdd88
|
@ -29,10 +29,7 @@
|
||||||
nemo.enable = true;
|
nemo.enable = true;
|
||||||
keepassxc.enable = true;
|
keepassxc.enable = true;
|
||||||
nicotineplus.enable = true;
|
nicotineplus.enable = true;
|
||||||
transmission = {
|
transmission.enable = true;
|
||||||
enable = true;
|
|
||||||
tui = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
chat = {
|
chat = {
|
||||||
discord.enable = true;
|
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 = [
|
imports = [
|
||||||
./remote-tui.nix
|
./remote-tui.nix
|
||||||
|
./daemon.nix
|
||||||
];
|
];
|
||||||
options.modules.desktop.apps.transmission = {
|
options.modules.desktop.apps.transmission = {
|
||||||
enable = mkEnableOption false;
|
enable = mkEnableOption false;
|
||||||
|
@ -14,17 +15,7 @@ in
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
#TODO(sako):: figure out service
|
#TODO(sako):: figure out service
|
||||||
users.users.sako.packages = with pkgs; [
|
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