2022-04-27 00:21:19 +02:00
|
|
|
{ self, ... }: {
|
2021-12-10 15:58:04 +01:00
|
|
|
imports = [
|
|
|
|
./hardware-configuration.nix
|
|
|
|
../../users/root
|
|
|
|
../../users/erwin
|
|
|
|
];
|
|
|
|
|
|
|
|
eboskma = {
|
2022-07-29 09:59:44 +02:00
|
|
|
users.erwin.enable = true;
|
2023-05-21 17:11:42 +02:00
|
|
|
docker.enable = true;
|
2021-12-10 20:11:36 +01:00
|
|
|
drone.enable = true;
|
2022-08-07 11:24:24 +02:00
|
|
|
nix-common = {
|
|
|
|
enable = true;
|
2022-08-14 16:38:25 +02:00
|
|
|
remote-builders = true;
|
2022-08-07 11:24:24 +02:00
|
|
|
};
|
2021-12-10 15:58:04 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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";
|
2022-04-27 00:21:19 +02:00
|
|
|
nameservers = [ "10.0.0.254" ];
|
2021-12-10 15:58:04 +01:00
|
|
|
};
|
|
|
|
|
2023-01-31 17:00:01 +01:00
|
|
|
security.sudo.execWheelOnly = true;
|
|
|
|
|
2021-12-10 15:58:04 +01:00
|
|
|
services.openssh.enable = true;
|
|
|
|
|
2021-12-10 20:11:36 +01:00
|
|
|
sops.defaultSopsFile = ./secrets.yaml;
|
|
|
|
sops.secrets = {
|
2022-04-27 00:21:19 +02:00
|
|
|
drone = { };
|
|
|
|
drone-runner = { };
|
2021-12-10 20:11:36 +01:00
|
|
|
};
|
|
|
|
|
2021-12-10 15:58:04 +01:00
|
|
|
system.stateVersion = "21.11";
|
|
|
|
}
|