2023-05-23 17:12:31 +02:00
|
|
|
{ self, ... }:
|
|
|
|
{ modulesPath, ... }: {
|
2022-04-26 10:59:48 +02:00
|
|
|
imports = [
|
2023-05-23 17:12:31 +02:00
|
|
|
(modulesPath + "/virtualisation/proxmox-lxc.nix")
|
|
|
|
|
2022-04-26 10:59:48 +02:00
|
|
|
../../users/root
|
|
|
|
../../users/erwin
|
2022-10-30 21:06:18 +01:00
|
|
|
./backup.nix
|
2022-04-26 10:59:48 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
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;
|
2022-08-14 16:38:25 +02:00
|
|
|
remote-builders = true;
|
2022-08-07 11:24:24 +02:00
|
|
|
};
|
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;
|
|
|
|
|
2023-05-23 17:12:31 +02:00
|
|
|
# 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" ];
|
|
|
|
# };
|
|
|
|
|
|
|
|
proxmoxLXC = {
|
|
|
|
privileged = true;
|
2022-04-26 10:59:48 +02:00
|
|
|
};
|
|
|
|
|
2022-10-26 17:12:39 +02:00
|
|
|
security.sudo.execWheelOnly = true;
|
|
|
|
|
2023-05-23 17:12:31 +02:00
|
|
|
services.tailscale.enable = true;
|
2022-04-26 10:59:48 +02:00
|
|
|
|
|
|
|
sops.defaultSopsFile = ./secrets.yaml;
|
|
|
|
sops.secrets = {
|
|
|
|
gitea_db_password = {
|
|
|
|
owner = "git";
|
|
|
|
};
|
2022-10-30 21:06:18 +01:00
|
|
|
gitea_backup_ssh_key = { };
|
|
|
|
gitea_backup_pass = { };
|
2022-04-26 10:59:48 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
system.stateVersion = "22.05";
|
|
|
|
}
|