nixos-config/machines/proxy/configuration.nix

52 lines
940 B
Nix
Raw Normal View History

{ self, ... }: {
2022-01-24 11:14:34 +01:00
imports = [
./hardware-configuration.nix
../../users/root
../../users/erwin
];
eboskma = {
users.erwin.enable = true;
2022-01-24 11:14:34 +01:00
docker.enable = true;
2022-08-07 11:24:24 +02:00
nix-common = {
enable = true;
disable-cache = true;
};
2022-01-24 11:14:34 +01:00
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 = {
2022-03-01 22:19:03 +01:00
ipv4.addresses = [
{
address = "10.0.0.251";
prefixLength = 24;
}
];
2022-01-24 11:14:34 +01:00
};
};
defaultGateway = "10.0.0.1";
nameservers = [ "10.0.0.254" ];
2022-01-24 11:14:34 +01:00
};
environment.noXlibs = true;
services.openssh.enable = true;
sops.defaultSopsFile = ./secrets.yaml;
sops.secrets = { };
2022-01-24 11:14:34 +01:00
system.stateVersion = "21.11";
}