forgejo-ci-runners/examples/aarch64.md

1 KiB

aarch64 example

outputs = { ... }@inputs:
let
    aarch64-linux-modules = [
    sops-nix.nixosModules.sops
    srvos.nixosModules.hardware-hetzner-cloud
    srvos.nixosModules.server
    srvos.nixosModules.mixins-systemd-boot
    disko.nixosModules.disko
    lix-module.nixosModules.default
    ./profiles/role-fj-hetzner.nix
    (import ./disko-hetzner-cloud.nix { disks = [ "/dev/sda" ]; })
    {
        boot.loader.efi.canTouchEfiVariables = true;
        networking.hostName = "fj-hetzner-aarch64-01";
        users.users.root.openssh.authorizedKeys.keys =
        [
            "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILcLI5qN69BuoLp8p7nTYKoLdsBNmZB31OerZ63Car1g jahanson@telchar"
        ];
        services.openssh.enable = true;
        services.openssh.settings.PermitRootLogin = "without-password";
    }
    ];
in {
    nixosConfigurations = {
        "fj-hetzner-aarch64" = lib.nixosSystem {
          system = "aarch64-linux";
          specialArgs = { inherit inputs; };
          modules = aarch64-linux-modules;
        };
    };
}