nixos-config/machines/gitea/configuration.nix

47 lines
856 B
Nix

{ self, ... }:
{ modulesPath, ... }: {
imports = [
(modulesPath + "/virtualisation/proxmox-lxc.nix")
../../users/root
../../users/erwin
./backup.nix
];
eboskma = {
users.erwin = {
enable = true;
server = true;
};
gitea.enable = true;
nix-common = {
enable = true;
remote-builders = true;
};
};
boot.isContainer = true;
time.timeZone = "Europe/Amsterdam";
system.configurationRevision = self.inputs.nixpkgs.lib.mkIf (self ? rev) self.rev;
proxmoxLXC = {
privileged = true;
};
security.sudo.execWheelOnly = true;
services.tailscale.enable = true;
sops.defaultSopsFile = ./secrets.yaml;
sops.secrets = {
gitea_db_password = {
owner = "git";
};
gitea_backup_ssh_key = { };
gitea_backup_pass = { };
};
system.stateVersion = "22.05";
}