2022-04-27 00:21:19 +02:00
|
|
|
{ self, ... } @ inputs: {
|
2022-04-26 10:59:48 +02:00
|
|
|
imports = [
|
2022-04-27 00:21:19 +02:00
|
|
|
./hardware-configuration.nix
|
2022-04-26 10:59:48 +02:00
|
|
|
../../users/root
|
|
|
|
../../users/erwin
|
|
|
|
];
|
|
|
|
|
|
|
|
eboskma = {
|
2022-07-29 09:59:44 +02:00
|
|
|
users.erwin.enable = true;
|
2022-04-26 10:59:48 +02:00
|
|
|
gitea.enable = true;
|
2022-08-07 11:24:24 +02:00
|
|
|
nix-common = {
|
|
|
|
enable = true;
|
|
|
|
disable-cache = true;
|
|
|
|
};
|
2022-04-26 10:59:48 +02:00
|
|
|
};
|
|
|
|
|
2022-04-27 00:21:19 +02:00
|
|
|
boot.isContainer = true;
|
2022-04-26 10:59:48 +02:00
|
|
|
|
|
|
|
time.timeZone = "Europe/Amsterdam";
|
|
|
|
|
|
|
|
system.configurationRevision = self.inputs.nixpkgs.lib.mkIf (self ? rev) self.rev;
|
|
|
|
|
|
|
|
networking = {
|
|
|
|
hostName = "gitea";
|
|
|
|
useDHCP = false;
|
|
|
|
|
|
|
|
interfaces = {
|
|
|
|
eth0 = {
|
|
|
|
ipv4.addresses = [
|
2022-04-27 00:21:19 +02:00
|
|
|
{
|
|
|
|
address = "10.0.0.201";
|
|
|
|
prefixLength = 24;
|
2022-04-26 10:59:48 +02:00
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
defaultGateway = "10.0.0.1";
|
2022-04-27 00:21:19 +02:00
|
|
|
nameservers = [ "10.0.0.254" ];
|
2022-04-26 10:59:48 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
environment.noXlibs = true;
|
|
|
|
|
|
|
|
# services.openssh.enable = true;
|
|
|
|
|
|
|
|
sops.defaultSopsFile = ./secrets.yaml;
|
|
|
|
sops.secrets = {
|
|
|
|
gitea_db_password = {
|
|
|
|
owner = "git";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
system.stateVersion = "22.05";
|
|
|
|
}
|