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