This commit is contained in:
mjallen18
2026-04-08 14:56:39 -05:00
parent 2e8c2ddd3a
commit 5ce8433aa8
3 changed files with 33 additions and 1 deletions

View File

@@ -99,6 +99,7 @@
# ---- pi5 services -------------------------------------------------- # ---- pi5 services --------------------------------------------------
pi5 = { pi5 = {
adguard = 3000; adguard = 3000;
attic = 9012;
nebula = 4242; nebula = 4242;
dns = 53; dns = 53;
}; };

View File

@@ -107,6 +107,14 @@ in
# ################################################### # ###################################################
services = { services = {
attic = {
enable = true;
port = net.ports.pi5.attic;
listenAddress = "[::]";
environmentFile = "/run/secrets/pi5/attic-key";
configDir = "/mnt/attic-store";
};
nebula = { nebula = {
enable = true; enable = true;
isLighthouse = true; isLighthouse = true;
@@ -153,7 +161,10 @@ in
firewall = { firewall = {
enable = true; enable = true;
allowPing = true; allowPing = true;
allowedTCPPorts = [ 53 ]; allowedTCPPorts = [
53
net.ports.pi5.attic
];
allowedUDPPorts = [ 53 ]; allowedUDPPorts = [ 53 ];
}; };
networkmanager.profiles = { networkmanager.profiles = {
@@ -169,6 +180,16 @@ in
# # FileSystems # # # # FileSystems # #
# ################################################### # ###################################################
fileSystems."/mnt/attic-store" = {
device = "/dev/disk/by-uuid/E81DBFCC-066E-46A3-8018-AA3BF4573074";
fsType = "xfs";
options = [
"defaults"
"noatime"
"nofail"
];
};
boot.supportedFilesystems = [ "bcachefs" ]; boot.supportedFilesystems = [ "bcachefs" ];
programs.seahorse.enable = false; programs.seahorse.enable = false;

View File

@@ -9,6 +9,16 @@ in
# Secrets # Secrets
# ------------------------------ # ------------------------------
secrets = { secrets = {
# ------------------------------
# Attic
# ------------------------------
"pi5/attic-key" = {
sopsFile = defaultSops;
mode = "0400";
owner = "atticd";
restartUnits = [ "atticd.service" ];
};
# ------------------------------ # ------------------------------
# SSH keys # SSH keys
# ------------------------------ # ------------------------------