nixos-config/machines/gitea/configuration.nix

58 lines
1 KiB
Nix
Raw Normal View History

{ self, ... } @ inputs: {
imports = [
./hardware-configuration.nix
../../users/root
../../users/erwin
];
eboskma = {
users.erwin.enable = true;
gitea.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
};
};
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.201";
prefixLength = 24;
}
];
};
};
defaultGateway = "10.0.0.1";
nameservers = [ "10.0.0.254" ];
};
environment.noXlibs = true;
2022-10-26 17:12:39 +02:00
security.sudo.execWheelOnly = true;
security.pam.enableSSHAgentAuth = true;
# services.openssh.enable = true;
sops.defaultSopsFile = ./secrets.yaml;
sops.secrets = {
gitea_db_password = {
owner = "git";
};
};
system.stateVersion = "22.05";
}