updates
This commit is contained in:
1 parent
b6838507fd
commit
81e576a877
6 files changed
+23
-47
No files matched your search
@@ -67,6 +67,10 @@
|
||||
rust-analyzer
|
||||
rustfmt
|
||||
cargo
|
||||
|
||||
zig
|
||||
zls
|
||||
lldb
|
||||
];
|
||||
|
||||
settings = {
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
{ config, ... }:
|
||||
let
|
||||
account = config.facts.account;
|
||||
in
|
||||
{
|
||||
flake.modules.nixos.qbittorrent =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
home-manager.users.${account.name}.home.packages = [ pkgs.qbittorrent ];
|
||||
};
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
{ config, ... }:
|
||||
let
|
||||
account = config.facts.account;
|
||||
in
|
||||
{
|
||||
flake.modules.nixos.deluge =
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
sops.secrets.deluge-auth-file = {
|
||||
owner = config.services.deluge.user;
|
||||
group = config.services.deluge.group;
|
||||
mode = "0400";
|
||||
restartUnits = [ "deluged.service" ];
|
||||
};
|
||||
|
||||
services.deluge = {
|
||||
enable = true;
|
||||
declarative = true;
|
||||
openFirewall = true;
|
||||
authFile = config.sops.secrets.deluge-auth-file.path;
|
||||
|
||||
config = {
|
||||
download_location = "${account.homeDirectory}/torrents/.incomplete";
|
||||
move_completed = true;
|
||||
move_completed_path = "${account.homeDirectory}/torrents";
|
||||
listen_ports = [
|
||||
43864
|
||||
43864
|
||||
];
|
||||
random_port = false;
|
||||
};
|
||||
};
|
||||
|
||||
home-manager.users.${account.name}.home.packages = [ pkgs.deluge ];
|
||||
|
||||
users.users.${account.name}.extraGroups = [ config.services.deluge.group ];
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user