nixos-config/machines/proxy/configuration.nix
2023-01-31 17:00:01 +01:00

50 lines
924 B
Nix

{ self, ... }: {
imports = [
./hardware-configuration.nix
../../users/root
../../users/erwin
];
eboskma = {
users.erwin.enable = true;
nix-common = {
enable = true;
remote-builders = true;
};
nginx-proxy-manager.enable = true;
};
boot.isContainer = true;
time.timeZone = "Europe/Amsterdam";
system.configurationRevision = self.inputs.nixpkgs.lib.mkIf (self ? rev) self.rev;
networking = {
hostName = "proxy";
useDHCP = false;
interfaces = {
eth0 = {
ipv4.addresses = [
{
address = "10.0.0.251";
prefixLength = 24;
}
];
};
};
defaultGateway = "10.0.0.1";
nameservers = [ "10.0.0.254" ];
};
services.openssh.enable = true;
security.sudo.execWheelOnly = true;
sops.defaultSopsFile = ./secrets.yaml;
sops.secrets = { };
system.stateVersion = "21.11";
}