nixos-config/machines/drone/configuration.nix

51 lines
893 B
Nix
Raw Normal View History

{ self, ... }: {
2021-12-10 15:58:04 +01:00
imports = [
./hardware-configuration.nix
../../users/root
../../users/erwin
];
eboskma = {
docker.enable = true;
drone.enable = true;
2021-12-10 15:58:04 +01:00
nix-common.enable = true;
};
boot.isContainer = true;
time.timeZone = "Europe/Amsterdam";
system.configurationRevision = self.inputs.nixpkgs.lib.mkIf (self ? rev) self.rev;
networking = {
hostName = "drone";
useDHCP = false;
interfaces = {
eth0 = {
2022-03-01 22:19:03 +01:00
ipv4.addresses = [
{
address = "10.0.0.202";
prefixLength = 24;
}
];
2021-12-10 15:58:04 +01:00
};
};
defaultGateway = "10.0.0.1";
nameservers = [ "10.0.0.254" ];
2021-12-10 15:58:04 +01:00
};
environment.noXlibs = true;
2021-12-10 15:58:04 +01:00
services.openssh.enable = true;
sops.defaultSopsFile = ./secrets.yaml;
sops.secrets = {
drone = { };
drone-runner = { };
};
2021-12-10 15:58:04 +01:00
system.stateVersion = "21.11";
}