add git.cloonar.com, remove old stuff

This commit is contained in:
2023-07-23 09:05:13 +02:00
parent cfe3cff764
commit b32c7d72b1
14 changed files with 130 additions and 417 deletions

View File

@@ -0,0 +1,49 @@
{ config, pkgs, ... }:
{
imports = [
./utils/modules/sops.nix
./utils/modules/lego/lego.nix
# ./modules/gogs.nix
./utils/modules/gitea.nix
./utils/modules/drone/server.nix
./utils/modules/drone/runner.nix
./utils/modules/borgbackup.nix
./utils/modules/netdata.nix
./utils/modules/tang.nix
./fleet.nix
./utils/modules/autoupgrade.nix
./hardware-configuration.nix
];
nixpkgs.overlays = [ (import ./utils/overlays/packages.nix) ];
sops.defaultSopsFile = ./secrets.yaml;
sops.age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
boot.loader.grub.device = "/dev/sda";
networking.hostName = "git";
services.openssh.enable = true;
users.users.root.openssh.authorizedKeys.keys = [
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDN/2SAFm50kraB1fepAizox/QRXxB7WbqVbH+5OPalDT47VIJGNKOKhixQoqhABHxEoLxdf/C83wxlCVlPV9poLfDgVkA3Lyt5r3tSFQ6QjjOJAgchWamMsxxyGBedhKvhiEzcr/Lxytnoz3kjDG8fqQJwEpdqMmJoMUfyL2Rqp16u+FQ7d5aJtwO8EUqovhMaNO7rggjPpV/uMOg+tBxxmscliN7DLuP4EMTA/FwXVzcFNbOx3K9BdpMRAaSJt4SWcJO2cS2KHA5n/H+PQI7nz5KN3Yr/upJN5fROhi/SHvK39QOx12Pv7FCuWlc+oR68vLaoCKYhnkl3DnCfc7A7"
];
environment.systemPackages = with pkgs; [
bento
vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
];
# backups
borgbackup.repo = "u149513-sub3@u149513-sub3.your-backup.de:borg";
networking.firewall = {
enable = true;
allowedTCPPorts = [ 22 80 443 8000 ];
};
system.stateVersion = "23.05";
}