Compare commits

..

No commits in common. "8cde2f28fbe18a207a8b95f3a5034a975aea9398" and "c805cc3dcb7e82e0a712005fd6711d736ac1114e" have entirely different histories.

4 changed files with 29 additions and 27 deletions

12
flake.lock generated
View File

@ -23,11 +23,11 @@
},
"nixos-unstable": {
"locked": {
"lastModified": 1686226982,
"narHash": "sha256-nLuiPoeiVfqqzeq9rmXxpybh77VS37dsY/k8N2LoxVg=",
"lastModified": 1685931219,
"narHash": "sha256-8EWeOZ6LKQfgAjB/USffUSELPRjw88A+xTcXnOUvO5M=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "a64b73e07d4aa65cfcbda29ecf78eaf9e72e44bd",
"rev": "7409480d5c8584a1a83c422530419efe4afb0d19",
"type": "github"
},
"original": {
@ -39,11 +39,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1686353867,
"narHash": "sha256-M6fe0+CiZTagmr2KM1pEaB+wwlSC+FY7nTJ4FGRctsw=",
"lastModified": 1686059680,
"narHash": "sha256-sp0WlCIeVczzB0G8f8iyRg3IYW7KG31mI66z7HIZwrI=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "bdbe3803330045c7b3f84b9df6ab7f8471d909ec",
"rev": "a558f7ac29f50c4b937fb5c102f587678ae1c9fb",
"type": "github"
},
"original": {

View File

@ -2,6 +2,11 @@
let
domain = "htdel.giugl.io";
auth_block = (import ./openid.nix { inherit lib; }).openresty_oidc_block;
utilities = import ./utilities.nix { inherit lib config; };
inherit (utilities) architectInterfaceAddress;
listenPorts = [ 51413 51414 ];
in
{
@ -36,22 +41,25 @@ in
authFile = "/secrets/deluge/auth";
extraPackages = [ pkgs.unrar ];
};
};
architect.vhost.${domain} = with config.architect.networks; {
dnsInterfaces = [ "lan" "wireguard" "tailscale" ];
locations = {
"/" = {
allowLan = true;
port = 8112;
nginx.virtualHosts.${domain} = {
forceSSL = true;
enableACME = true;
allow = [
wireguard.net
tailscale.net
];
locations."/" = {
proxyPass = "http://127.0.0.1:8112";
extraConfig = auth_block {
access_role = "deluge";
};
};
};
};
networking.extraHosts = ''
${architectInterfaceAddress "lan"} ${domain}
${architectInterfaceAddress "wireguard"} ${domain}
${architectInterfaceAddress "tailscale"} ${domain}
'';
users.groups.media.members = [ "deluge" ];
}

View File

@ -8,12 +8,6 @@ let
inherit (utilities) architectInterfaceAddress;
in
{
environment.systemPackages = with pkgs; [
nodejs-18_x
libtensorflow
ffmpeg
];
services = {
nginx.virtualHosts.${domain} = {
forceSSL = true;
@ -22,7 +16,7 @@ in
mysql = {
enable = true;
package = pkgs.mariadb_1011;
package = pkgs.mariadb;
};
redis = {
@ -57,6 +51,7 @@ in
dbname = "nextcloud";
dbpassFile = "/secrets/nextcloud/dbpass.txt";
adminpassFile = "/secrets/nextcloud/dbpass.txt";
extraTrustedDomains = [ "${domain}" ];
};
};
};

View File

@ -11,8 +11,7 @@
plugins = [ "git" "sudo" "docker" "docker-compose" "adb" "systemd" ];
theme = "bira";
};
enableAutosuggestions = true;
dotDir = ".config/zsh";
initExtra = ''
any-nix-shell zsh --info-right | source /dev/stdin
source ${pkgs.nix-index}/etc/profile.d/command-not-found.sh