lol
This commit is contained in:
@@ -107,6 +107,14 @@ in
|
||||
# ###################################################
|
||||
|
||||
services = {
|
||||
attic = {
|
||||
enable = true;
|
||||
port = net.ports.pi5.attic;
|
||||
listenAddress = "[::]";
|
||||
environmentFile = "/run/secrets/pi5/attic-key";
|
||||
configDir = "/mnt/attic-store";
|
||||
};
|
||||
|
||||
nebula = {
|
||||
enable = true;
|
||||
isLighthouse = true;
|
||||
@@ -153,7 +161,10 @@ in
|
||||
firewall = {
|
||||
enable = true;
|
||||
allowPing = true;
|
||||
allowedTCPPorts = [ 53 ];
|
||||
allowedTCPPorts = [
|
||||
53
|
||||
net.ports.pi5.attic
|
||||
];
|
||||
allowedUDPPorts = [ 53 ];
|
||||
};
|
||||
networkmanager.profiles = {
|
||||
@@ -169,6 +180,16 @@ in
|
||||
# # FileSystems # #
|
||||
# ###################################################
|
||||
|
||||
fileSystems."/mnt/attic-store" = {
|
||||
device = "/dev/disk/by-uuid/E81DBFCC-066E-46A3-8018-AA3BF4573074";
|
||||
fsType = "xfs";
|
||||
options = [
|
||||
"defaults"
|
||||
"noatime"
|
||||
"nofail"
|
||||
];
|
||||
};
|
||||
|
||||
boot.supportedFilesystems = [ "bcachefs" ];
|
||||
|
||||
programs.seahorse.enable = false;
|
||||
|
||||
@@ -9,6 +9,16 @@ in
|
||||
# Secrets
|
||||
# ------------------------------
|
||||
secrets = {
|
||||
# ------------------------------
|
||||
# Attic
|
||||
# ------------------------------
|
||||
"pi5/attic-key" = {
|
||||
sopsFile = defaultSops;
|
||||
mode = "0400";
|
||||
owner = "atticd";
|
||||
restartUnits = [ "atticd.service" ];
|
||||
};
|
||||
|
||||
# ------------------------------
|
||||
# SSH keys
|
||||
# ------------------------------
|
||||
|
||||
Reference in New Issue
Block a user