nix-config/hosts/server1/configuration.nix
smayzy ffec6e9b29
All checks were successful
nixos config pipeline / show-flake (push) Successful in 23s
nixos config pipeline / deploy (push) Successful in 55s
add unbound to server1
2025-08-28 14:23:39 +02:00

46 lines
928 B
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.137" "192.168.1.49" ];
smayzy = {
server.enable = true;
containers.nixos= {
httpd = {
enable = true;
bridge = "br0";
ip = "192.168.1.201/24";
};
unbound = {
enable = true;
bridge = "br0";
ip = "192.168.1.202/24";
};
};
};
home-manager = {
extraSpecialArgs = {
inherit inputs;
smayzy = config.smayzy;
};
users = {
smayzy = import ./home.nix;
};
backupFileExtension = "backup";
};
system.stateVersion = "24.11";
}