nix-config/hosts/server1/configuration.nix
smayzy 26b49e8a8d
All checks were successful
nixos config pipeline / show-flake (push) Successful in 25s
nixos config pipeline / deploy (push) Successful in 6s
actually mv it
2025-09-22 22:09:16 +02:00

63 lines
1.3 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 = {
httpd = {
enable = true;
ip = "192.168.1.201/24";
};
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";
}