nix-config/hosts/server1/configuration.nix
smayzy f1259be78c
All checks were successful
nixos config pipeline / show-flake (push) Successful in 31s
nixos config pipeline / deploy (push) Successful in 17s
add bridge on server1
2025-08-26 21:43:31 +02:00

34 lines
685 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;
};
home-manager = {
extraSpecialArgs = {
inherit inputs;
smayzy = config.smayzy;
};
users = {
smayzy = import ./home.nix;
};
backupFileExtension = "backup";
};
system.stateVersion = "24.11";
}