server services

This commit is contained in:
2025-07-15 15:24:33 +02:00
parent 555b11eab0
commit 378edf29a4
6 changed files with 115 additions and 2 deletions

View File

@@ -33,11 +33,15 @@ in {
imports = [
./hardware-configuration.nix
./modules.nix
./server.nix
];
boot.initrd.luks.devices."luks-47b35d4b-467a-4637-a5f9-45177da62897".device = "/dev/disk/by-uuid/47b35d4b-467a-4637-a5f9-45177da62897";
networking.hostName = "sobotka";
networking = {
hostName = "sobotka";
domain = "cnst.dev";
};
environment.variables.NH_FLAKE = "/home/cnst/.nix-config";

View File

@@ -29,7 +29,7 @@
network = {
enable = true;
interfaces = {
"eno1" = {
"enp6s0" = {
allowedTCPPorts = [22 80 443];
};
};

10
hosts/sobotka/server.nix Normal file
View File

@@ -0,0 +1,10 @@
{
server = {
caddy = {
enable = true;
};
vaultwarden = {
enable = true;
};
};
}