58 lines
1.1 KiB
Nix
58 lines
1.1 KiB
Nix
{ self, ... } @ inputs: {
|
|
imports = [
|
|
./hardware-configuration.nix
|
|
../../users/root
|
|
../../users/erwin
|
|
./backup.nix
|
|
];
|
|
|
|
eboskma = {
|
|
users.erwin.enable = 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;
|
|
|
|
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" ];
|
|
};
|
|
|
|
security.sudo.execWheelOnly = true;
|
|
security.pam.enableSSHAgentAuth = true;
|
|
|
|
# services.openssh.enable = true;
|
|
|
|
sops.defaultSopsFile = ./secrets.yaml;
|
|
sops.secrets = {
|
|
gitea_db_password = {
|
|
owner = "git";
|
|
};
|
|
gitea_backup_ssh_key = { };
|
|
gitea_backup_pass = { };
|
|
};
|
|
|
|
system.stateVersion = "22.05";
|
|
}
|