nix-config/hosts/server1/configuration.nix
smayzy c8082d5b87
All checks were successful
nixos config pipeline / show-flake (push) Successful in 36s
nixos config pipeline / deploy (push) Successful in 54s
remove httpd
2025-10-02 17:47:20 +02:00

59 lines
1.2 KiB
Nix

{ inputs, config, ... }:
{
imports = [
../common/common.nix
./hardware-configuration.nix
];
networking.hostName = "server1";
networking.bridges.br0.interfaces = [ "ens18" ];
networking.interfaces.br0.ipv4.addresses = [ { address = "192.168.1.197"; prefixLength = 24; } ];
networking.defaultGateway = "192.168.1.254";
networking.nameservers = [ "192.168.1.202" "192.168.1.137" "192.168.1.49" ];
age.identityPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
smayzy = {
server.enable = true;
containers = {
networking = {
bridge = "br0";
dns = [ "192.168.1.202" ];
gateway = "192.168.1.254";
};
nixos = {
unbound = {
enable = true;
ip = "192.168.1.202/24";
};
traefik = {
enable = true;
ip = "192.168.1.203/24";
};
};
docker = {
cyberchef = {
enable = true;
port = 6900;
};
};
};
};
home-manager = {
extraSpecialArgs = {
inherit inputs;
smayzy = config.smayzy;
};
users = {
smayzy = import ./home.nix;
};
backupFileExtension = "backup";
};
system.stateVersion = "24.11";
}