mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
feat: winter details
This commit is contained in:
parent
db96f0c46b
commit
ad496dccf3
3 changed files with 213 additions and 97 deletions
|
|
@ -7631,6 +7631,21 @@ Also, the system state version is set here. No need to touch it.
|
||||||
group = "docker";
|
group = "docker";
|
||||||
extraGroups = [ "users" ];
|
extraGroups = [ "users" ];
|
||||||
};
|
};
|
||||||
|
radarr = {
|
||||||
|
extraGroups = [ "users" ];
|
||||||
|
};
|
||||||
|
readarr = {
|
||||||
|
extraGroups = [ "users" ];
|
||||||
|
};
|
||||||
|
sonarr = {
|
||||||
|
extraGroups = [ "users" ];
|
||||||
|
};
|
||||||
|
lidarr = {
|
||||||
|
extraGroups = [ "users" ];
|
||||||
|
};
|
||||||
|
prowlarr = {
|
||||||
|
extraGroups = [ "users" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -7642,18 +7657,27 @@ Also, the system state version is set here. No need to touch it.
|
||||||
services = {
|
services = {
|
||||||
radarr = {
|
radarr = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
openFirewall = true;
|
||||||
|
dataDir = "/Vault/apps/radarr"
|
||||||
};
|
};
|
||||||
readarr = {
|
readarr = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
openFirewall = true;
|
||||||
|
dataDir = "/Vault/apps/readarr"
|
||||||
};
|
};
|
||||||
sonarr = {
|
sonarr = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
openFirewall = true;
|
||||||
|
dataDir = "/Vault/apps/sonarr"
|
||||||
};
|
};
|
||||||
lidarr = {
|
lidarr = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
openFirewall = true;
|
||||||
|
dataDir = "/Vault/apps/lidarr"
|
||||||
};
|
};
|
||||||
prowlarr = {
|
prowlarr = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
openFirewall = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
nginx = {
|
nginx = {
|
||||||
|
|
@ -7669,6 +7693,18 @@ Also, the system state version is set here. No need to touch it.
|
||||||
client_max_body_size 0;
|
client_max_body_size 0;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
"/radarr" = {
|
||||||
|
proxyPass = "http://127.0.0.1:8080";
|
||||||
|
extraConfig = ''
|
||||||
|
client_max_body_size 0;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
"/sonarr" = {
|
||||||
|
proxyPass = "http://127.0.0.1:8080";
|
||||||
|
extraConfig = ''
|
||||||
|
client_max_body_size 0;
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -7682,86 +7718,108 @@ Also, the system state version is set here. No need to touch it.
|
||||||
**** syncthing
|
**** syncthing
|
||||||
|
|
||||||
#+begin_src nix :tangle profiles/server/common/syncthing.nix
|
#+begin_src nix :tangle profiles/server/common/syncthing.nix
|
||||||
{ pkgs, lib, config, ... }:
|
{ pkgs, lib, config, ... }:
|
||||||
{
|
{
|
||||||
config = lib.mkIf config.swarselsystems.server.syncthing {
|
config = lib.mkIf config.swarselsystems.server.syncthing {
|
||||||
|
|
||||||
users.users.syncthing = {
|
users.users.syncthing = {
|
||||||
extraGroups = [ "users" ];
|
extraGroups = [ "users" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
services.syncthing = {
|
services.syncthing = {
|
||||||
enable = true;
|
enable = true;
|
||||||
user = "syncthing";
|
user = "syncthing";
|
||||||
dataDir = "/Vault/data/syncthing";
|
dataDir = "/Vault/data/syncthing";
|
||||||
configDir = "/Vault/apps/syncthing";
|
configDir = "/Vault/apps/syncthing";
|
||||||
guiAddress = "0.0.0.0:8384";
|
guiAddress = "0.0.0.0:8384";
|
||||||
openDefaultPorts = true;
|
openDefaultPorts = true;
|
||||||
settings = {
|
settings = {
|
||||||
devices = {
|
devices = {
|
||||||
"magicant" = {
|
"magicant" = {
|
||||||
id = "VMWGEE2-4HDS2QO-KNQOVGN-LXLX6LA-666E4EK-ZBRYRRO-XFEX6FB-6E3XLQO";
|
id = "VMWGEE2-4HDS2QO-KNQOVGN-LXLX6LA-666E4EK-ZBRYRRO-XFEX6FB-6E3XLQO";
|
||||||
|
};
|
||||||
|
"zenfone9" = {
|
||||||
|
id = "SEH2NMT-IVRQUU5-VPW2HUQ-3GQYDBF-F6H6OY6-X3DZTUZ-LCRE2DJ-QNIXIQ2";
|
||||||
|
};
|
||||||
|
"sync (@oracle)" = {
|
||||||
|
id = "ETW6TST-NPK7MKZ-M4LXMHA-QUPQHDT-VTSHH5X-CR5EIN2-YU7E55F-MGT7DQB";
|
||||||
|
};
|
||||||
|
"nbl-imba-2" = {
|
||||||
|
id = "YAPV4BV-I26WPTN-SIP32MV-SQP5TBZ-3CHMTCI-Z3D6EP2-MNDQGLP-53FT3AB";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
"zenfone9" = {
|
folders = {
|
||||||
id = "SEH2NMT-IVRQUU5-VPW2HUQ-3GQYDBF-F6H6OY6-X3DZTUZ-LCRE2DJ-QNIXIQ2";
|
"Default Folder" = {
|
||||||
};
|
path = "/Vault/data/syncthing/Sync";
|
||||||
"sync (@oracle)" = {
|
type = "receiveonly";
|
||||||
id = "ETW6TST-NPK7MKZ-M4LXMHA-QUPQHDT-VTSHH5X-CR5EIN2-YU7E55F-MGT7DQB";
|
versioning = null;
|
||||||
};
|
devices = [ "sync (@oracle)" "magicant" "zenfone9" "nbl-imba-2" ];
|
||||||
"nbl-imba-2" = {
|
id = "default";
|
||||||
id = "YAPV4BV-I26WPTN-SIP32MV-SQP5TBZ-3CHMTCI-Z3D6EP2-MNDQGLP-53FT3AB";
|
};
|
||||||
};
|
"Obsidian" = {
|
||||||
};
|
path = "/Vault/data/syncthing/Obsidian";
|
||||||
folders = {
|
type = "receiveonly";
|
||||||
"Default Folder" = {
|
versioning = {
|
||||||
path = "/Vault/data/syncthing/Sync";
|
type = "simple";
|
||||||
devices = [ "sync (@oracle)" "magicant" "zenfone9" "nbl-imba-2" ];
|
params.keep = "5";
|
||||||
id = "default";
|
};
|
||||||
};
|
devices = [ "sync (@oracle)" "magicant" "zenfone9" "nbl-imba-2" ];
|
||||||
"Obsidian" = {
|
id = "yjvni-9eaa7";
|
||||||
path = "/Vault/data/syncthing/Obsidian";
|
};
|
||||||
devices = [ "sync (@oracle)" "magicant" "zenfone9" "nbl-imba-2" ];
|
"Org" = {
|
||||||
id = "yjvni-9eaa7";
|
path = "/Vault/data/syncthing/Org";
|
||||||
};
|
type = "receiveonly";
|
||||||
"Org" = {
|
versioning = {
|
||||||
path = "/Vault/data/syncthing/Org";
|
type = "simple";
|
||||||
devices = [ "sync (@oracle)" "magicant" "zenfone9" "nbl-imba-2" ];
|
params.keep = "5";
|
||||||
id = "a7xnl-zjj3d";
|
};
|
||||||
};
|
devices = [ "sync (@oracle)" "magicant" "zenfone9" "nbl-imba-2" ];
|
||||||
"Vpn" = {
|
id = "a7xnl-zjj3d";
|
||||||
path = "/Vault/data/syncthing/Vpn";
|
};
|
||||||
devices = [ "sync (@oracle)" "magicant" "zenfone9" "nbl-imba-2" ];
|
"Vpn" = {
|
||||||
id = "hgp9s-fyq3p";
|
path = "/Vault/data/syncthing/Vpn";
|
||||||
};
|
type = "receiveonly";
|
||||||
"Documents" = {
|
versioning = {
|
||||||
path = "/Vault/data/syncthing/Documents";
|
type = "simple";
|
||||||
devices = [ "magicant" "nbl-imba-2" ];
|
params.keep = "5";
|
||||||
id = "hgr3d-pfu3w";
|
};
|
||||||
|
devices = [ "sync (@oracle)" "magicant" "zenfone9" "nbl-imba-2" ];
|
||||||
|
id = "hgp9s-fyq3p";
|
||||||
|
};
|
||||||
|
"Documents" = {
|
||||||
|
path = "/Vault/data/syncthing/Documents";
|
||||||
|
type = "receiveonly";
|
||||||
|
versioning = {
|
||||||
|
type = "simple";
|
||||||
|
params.keep = "5";
|
||||||
|
};
|
||||||
|
devices = [ "magicant" "nbl-imba-2" ];
|
||||||
|
id = "hgr3d-pfu3w";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
"storync.swarsel.win" = {
|
"storync.swarsel.win" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
acmeRoot = null;
|
acmeRoot = null;
|
||||||
locations = {
|
locations = {
|
||||||
"/" = {
|
"/" = {
|
||||||
proxyPass = "http://localhost:8384/";
|
proxyPass = "http://localhost:8384/";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
client_max_body_size 0;
|
client_max_body_size 0;
|
||||||
'';
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
}
|
}
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -31,26 +31,48 @@
|
||||||
folders = {
|
folders = {
|
||||||
"Default Folder" = {
|
"Default Folder" = {
|
||||||
path = "/Vault/data/syncthing/Sync";
|
path = "/Vault/data/syncthing/Sync";
|
||||||
|
type = "receiveonly";
|
||||||
|
versioning = null;
|
||||||
devices = [ "sync (@oracle)" "magicant" "zenfone9" "nbl-imba-2" ];
|
devices = [ "sync (@oracle)" "magicant" "zenfone9" "nbl-imba-2" ];
|
||||||
id = "default";
|
id = "default";
|
||||||
};
|
};
|
||||||
"Obsidian" = {
|
"Obsidian" = {
|
||||||
path = "/Vault/data/syncthing/Obsidian";
|
path = "/Vault/data/syncthing/Obsidian";
|
||||||
|
type = "receiveonly";
|
||||||
|
versioning = {
|
||||||
|
type = "simple";
|
||||||
|
params.keep = "5";
|
||||||
|
};
|
||||||
devices = [ "sync (@oracle)" "magicant" "zenfone9" "nbl-imba-2" ];
|
devices = [ "sync (@oracle)" "magicant" "zenfone9" "nbl-imba-2" ];
|
||||||
id = "yjvni-9eaa7";
|
id = "yjvni-9eaa7";
|
||||||
};
|
};
|
||||||
"Org" = {
|
"Org" = {
|
||||||
path = "/Vault/data/syncthing/Org";
|
path = "/Vault/data/syncthing/Org";
|
||||||
|
type = "receiveonly";
|
||||||
|
versioning = {
|
||||||
|
type = "simple";
|
||||||
|
params.keep = "5";
|
||||||
|
};
|
||||||
devices = [ "sync (@oracle)" "magicant" "zenfone9" "nbl-imba-2" ];
|
devices = [ "sync (@oracle)" "magicant" "zenfone9" "nbl-imba-2" ];
|
||||||
id = "a7xnl-zjj3d";
|
id = "a7xnl-zjj3d";
|
||||||
};
|
};
|
||||||
"Vpn" = {
|
"Vpn" = {
|
||||||
path = "/Vault/data/syncthing/Vpn";
|
path = "/Vault/data/syncthing/Vpn";
|
||||||
|
type = "receiveonly";
|
||||||
|
versioning = {
|
||||||
|
type = "simple";
|
||||||
|
params.keep = "5";
|
||||||
|
};
|
||||||
devices = [ "sync (@oracle)" "magicant" "zenfone9" "nbl-imba-2" ];
|
devices = [ "sync (@oracle)" "magicant" "zenfone9" "nbl-imba-2" ];
|
||||||
id = "hgp9s-fyq3p";
|
id = "hgp9s-fyq3p";
|
||||||
};
|
};
|
||||||
"Documents" = {
|
"Documents" = {
|
||||||
path = "/Vault/data/syncthing/Documents";
|
path = "/Vault/data/syncthing/Documents";
|
||||||
|
type = "receiveonly";
|
||||||
|
versioning = {
|
||||||
|
type = "simple";
|
||||||
|
params.keep = "5";
|
||||||
|
};
|
||||||
devices = [ "magicant" "nbl-imba-2" ];
|
devices = [ "magicant" "nbl-imba-2" ];
|
||||||
id = "hgr3d-pfu3w";
|
id = "hgr3d-pfu3w";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,21 @@
|
||||||
group = "docker";
|
group = "docker";
|
||||||
extraGroups = [ "users" ];
|
extraGroups = [ "users" ];
|
||||||
};
|
};
|
||||||
|
radarr = {
|
||||||
|
extraGroups = [ "users" ];
|
||||||
|
};
|
||||||
|
readarr = {
|
||||||
|
extraGroups = [ "users" ];
|
||||||
|
};
|
||||||
|
sonarr = {
|
||||||
|
extraGroups = [ "users" ];
|
||||||
|
};
|
||||||
|
lidarr = {
|
||||||
|
extraGroups = [ "users" ];
|
||||||
|
};
|
||||||
|
prowlarr = {
|
||||||
|
extraGroups = [ "users" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -27,37 +42,58 @@
|
||||||
services = {
|
services = {
|
||||||
radarr = {
|
radarr = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
openFirewall = true;
|
||||||
readarr = {
|
dataDir = "/Vault/apps/radarr"
|
||||||
enable = true;
|
};
|
||||||
};
|
readarr = {
|
||||||
sonarr = {
|
enable = true;
|
||||||
enable = true;
|
openFirewall = true;
|
||||||
};
|
dataDir = "/Vault/apps/readarr"
|
||||||
lidarr = {
|
};
|
||||||
enable = true;
|
sonarr = {
|
||||||
};
|
enable = true;
|
||||||
prowlarr = {
|
openFirewall = true;
|
||||||
enable = true;
|
dataDir = "/Vault/apps/sonarr"
|
||||||
};
|
};
|
||||||
|
lidarr = {
|
||||||
|
enable = true;
|
||||||
|
openFirewall = true;
|
||||||
|
dataDir = "/Vault/apps/lidarr"
|
||||||
|
};
|
||||||
|
prowlarr = {
|
||||||
|
enable = true;
|
||||||
|
openFirewall = true;
|
||||||
|
};
|
||||||
|
|
||||||
nginx = {
|
nginx = {
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
"store.swarsel.win" = {
|
"store.swarsel.win" = {
|
||||||
enableACME = false;
|
enableACME = false;
|
||||||
forceSSL = false;
|
forceSSL = false;
|
||||||
acmeRoot = null;
|
acmeRoot = null;
|
||||||
locations = {
|
locations = {
|
||||||
"/" = {
|
"/" = {
|
||||||
proxyPass = "http://127.0.0.1:9091";
|
proxyPass = "http://127.0.0.1:9091";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
client_max_body_size 0;
|
client_max_body_size 0;
|
||||||
'';
|
'';
|
||||||
|
};
|
||||||
|
"/radarr" = {
|
||||||
|
proxyPass = "http://127.0.0.1:8080";
|
||||||
|
extraConfig = ''
|
||||||
|
client_max_body_size 0;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
"/sonarr" = {
|
||||||
|
proxyPass = "http://127.0.0.1:8080";
|
||||||
|
extraConfig = ''
|
||||||
|
client_max_body_size 0;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue