lol
This commit is contained in:
@@ -99,6 +99,7 @@
|
|||||||
# ---- pi5 services --------------------------------------------------
|
# ---- pi5 services --------------------------------------------------
|
||||||
pi5 = {
|
pi5 = {
|
||||||
adguard = 3000;
|
adguard = 3000;
|
||||||
|
attic = 9012;
|
||||||
nebula = 4242;
|
nebula = 4242;
|
||||||
dns = 53;
|
dns = 53;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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
|
||||||
# ------------------------------
|
# ------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user