update
This commit is contained in:
1 parent
fc064edeae
commit
e0ced6c58c
10 files changed
+40
-106
No files matched your search
@@ -13,9 +13,11 @@
|
||||
AllowUsers = ["nick" "gitea"];
|
||||
MaxAuthTries = 3;
|
||||
PerSourcePenalties = "crash:3600s authfail:3600s max:86400s";
|
||||
PerSourcePenaltyExemptList = "10.0.0.0/24";
|
||||
};
|
||||
};
|
||||
users.users."nick".openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJwouafzGDRGeMJQbm9ME/1CSkXicdL7TthJjWkhyLYd nick@Theseus"
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOdC37ZsslHOM7n3o92e9h8jyqbmm0ox18d40uGX4Duu nicknase27"
|
||||
];
|
||||
}
|
||||
@@ -10,7 +10,7 @@
|
||||
environmentFile = "/run/secrets/caddy.env";
|
||||
package = pkgs.caddy.withPlugins {
|
||||
plugins = ["github.com/caddy-dns/cloudflare@v0.2.4"];
|
||||
hash = "sha256-7GoH8YLCoPmPExQxoga2FHB58zQDoZVf1BBwkVi0SsQ=";
|
||||
hash = "sha256-Oirb6ZtU/c6C/SfICWpfBAEGDTepWShPQdWW0LlhF20=";
|
||||
};
|
||||
globalConfig = ''
|
||||
email {$EMAIL}
|
||||
@@ -78,6 +78,11 @@
|
||||
'';
|
||||
serverAliases = ["watch.nicknase27.com"];
|
||||
};
|
||||
"mc.nicknase27.com" = {
|
||||
extraConfig = ''
|
||||
reverse_proxy localhost:25565
|
||||
'';
|
||||
};
|
||||
|
||||
# Local
|
||||
"opn.nicknase27.com" = {
|
||||
|
||||
@@ -17,19 +17,6 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Runner
|
||||
# gitea-actions-runner = {
|
||||
# instances.default = {
|
||||
# enable = true;
|
||||
# name = "hermes";
|
||||
# url = "https://git.nicknase27.com";
|
||||
# tokenFile = config.age.secrets.gitea-runner.path;
|
||||
# labels = [
|
||||
# "ubuntu-latest:docker://node:20-bookworm"
|
||||
# ];
|
||||
# };
|
||||
# };
|
||||
};
|
||||
|
||||
age.secrets = {
|
||||
@@ -39,13 +26,8 @@
|
||||
owner = "gitea";
|
||||
group = "gitea";
|
||||
};
|
||||
# gitea-runner = {
|
||||
# file = ../../secrets/gitea-runner.age;
|
||||
# path = "/run/secrets/gitea-runner";
|
||||
# owner = "gitea-runner";
|
||||
# group = "gitea-runner";
|
||||
# };
|
||||
};
|
||||
|
||||
networking.firewall = {
|
||||
allowedTCPPorts = [3000];
|
||||
};
|
||||
|
||||
@@ -3,8 +3,14 @@
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
}: let
|
||||
discord-plugin-wasm = pkgs.pkgsCross.wasi32.navidromePlugins.discord-rich-presence;
|
||||
navidrome-skip-tests = pkgs.navidrome.overrideAttrs (oldAttrs: {
|
||||
doCheck = false;
|
||||
});
|
||||
in {
|
||||
services.navidrome = {
|
||||
package = navidrome-skip-tests;
|
||||
#Settings
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
@@ -30,12 +36,14 @@
|
||||
EnableStarRating = true;
|
||||
DefaultUIVolume = 100;
|
||||
|
||||
LyricsPriority = "embedded,.lrc,.txt,.srt";
|
||||
|
||||
LastFM.Enabled = true;
|
||||
};
|
||||
|
||||
#Plugins
|
||||
plugins = with pkgs.navidromePlugins; [
|
||||
discord-rich-presence
|
||||
discord-plugin-wasm
|
||||
];
|
||||
|
||||
#Environment
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
{
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
{config, ...}: {
|
||||
# Define VPN network namespace
|
||||
vpnNamespaces.wg0 = {
|
||||
enable = true;
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
firewall = {
|
||||
enable = true;
|
||||
trustedInterfaces = ["podman0" "docker0" "cni-podman0"];
|
||||
allowedTCPPorts = [25565];
|
||||
};
|
||||
nftables = {
|
||||
enable = true;
|
||||
|
||||
@@ -9,5 +9,6 @@
|
||||
alejandra
|
||||
nixd
|
||||
restic
|
||||
jdk21
|
||||
];
|
||||
}
|
||||
@@ -10,7 +10,6 @@
|
||||
eza
|
||||
yazi
|
||||
dysk
|
||||
tmux
|
||||
btop
|
||||
fzf
|
||||
ripgrep
|
||||
|
||||
Reference in new issue
Block a user