47 lines
838 B
Nix
47 lines
838 B
Nix
|
{ self, ... }:
|
||
|
{
|
||
|
imports = [
|
||
|
./hardware-configuration.nix
|
||
|
../../users/root
|
||
|
../../users/erwin
|
||
|
];
|
||
|
|
||
|
eboskma = {
|
||
|
docker.enable = true;
|
||
|
nix-common.enable = 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" ];
|
||
|
};
|
||
|
|
||
|
environment.noXlibs = true;
|
||
|
|
||
|
services.openssh.enable = true;
|
||
|
|
||
|
sops.defaultSopsFile = ./secrets.yaml;
|
||
|
sops.secrets = { };
|
||
|
|
||
|
system.stateVersion = "21.11";
|
||
|
}
|