Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 16c68592b0 | |||
| 10e61b8deb | |||
| 2ed4a899b7 |
@@ -48,6 +48,8 @@ in
|
||||
wl-clipboard
|
||||
# LSPs & Formatters
|
||||
stylua
|
||||
taplo
|
||||
yamlfmt
|
||||
lua-language-server
|
||||
nixd
|
||||
nix-doc
|
||||
|
||||
@@ -30,6 +30,8 @@ require("lz.n").load({
|
||||
formatters_by_ft = {
|
||||
lua = { "stylua" },
|
||||
python = { "ruff_fix", "ruff_format", "ruff_organize_imports" },
|
||||
toml = { "taplo" },
|
||||
yaml = { "yamlfmt" },
|
||||
},
|
||||
formatters = {
|
||||
stylua = {
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
{ config, ... }:
|
||||
let
|
||||
account = config.repo.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 ];
|
||||
};
|
||||
}
|
||||
@@ -53,11 +53,6 @@ in
|
||||
label = "sync";
|
||||
devices = builtins.attrNames syncDevices;
|
||||
};
|
||||
calibre = {
|
||||
path = "~/calibre";
|
||||
label = "calibre";
|
||||
devices = builtins.attrNames syncMachines;
|
||||
};
|
||||
};
|
||||
devices = syncDevices;
|
||||
};
|
||||
|
||||
@@ -36,7 +36,7 @@ in
|
||||
{
|
||||
imports = [
|
||||
nixosModules.workstation-base
|
||||
nixosModules.transmission
|
||||
nixosModules.deluge
|
||||
nixosModules.steam
|
||||
./_hardware.nix
|
||||
]
|
||||
|
||||
@@ -35,7 +35,7 @@ in
|
||||
{
|
||||
imports = [
|
||||
nixosModules.workstation-base
|
||||
nixosModules.transmission
|
||||
nixosModules.deluge
|
||||
nixosModules.laptop-power
|
||||
{
|
||||
hardware.enableRedistributableFirmware = true;
|
||||
|
||||
Reference in New Issue
Block a user