46 lines
928 B
Nix
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";
|
|
|
|
}
|