forgejo-ci-runners/examples/x86_64.md

1.1 KiB

x86_64 example

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