nix-config/hosts/server1/configuration.nix
smayzy d341c0c3f1
All checks were successful
nixos config pipeline / show-flake (push) Successful in 27s
nixos config pipeline / deploy (push) Successful in 1m38s
format nix code
2025-10-09 17:55:32 +02:00

68 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";
}