nixos-config/machines/gitea/configuration.nix

49 lines
840 B
Nix
Raw Normal View History

{ self, ... }@inputs: {
imports = [
../../users/root
../../users/erwin
];
eboskma = {
gitea.enable = true;
nix-common.enable = true;
};
# boot.isContainer = true;
time.timeZone = "Europe/Amsterdam";
system.configurationRevision = self.inputs.nixpkgs.lib.mkIf (self ? rev) self.rev;
networking = {
hostName = "gitea";
useDHCP = false;
interfaces = {
eth0 = {
ipv4.addresses = [
{ address = "10.0.0.203";
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 = {
gitea_db_password = {
owner = "git";
};
};
system.stateVersion = "22.05";
}