2024-05-14 12:03:36 -05:00
|
|
|
{
|
|
|
|
description = "Forgejo CI Runners";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
srvos.url = "github:numtide/srvos";
|
|
|
|
disko.url = "github:nix-community/disko";
|
|
|
|
# sops-nix - secrets with mozilla sops
|
|
|
|
# https://github.com/Mic92/sops-nix
|
|
|
|
sops-nix = {
|
|
|
|
url = "github:Mic92/sops-nix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nixConfig = {
|
|
|
|
extra-substituters = [
|
|
|
|
"https://nix-community.cachix.org"
|
|
|
|
"https://hsndev.cachix.org"
|
|
|
|
];
|
|
|
|
extra-trusted-public-keys = [
|
|
|
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
|
|
|
"hsndev.cachix.org-1:vN1/XGBZtMLnTFYDmTLDrullgZHSUYY3Kqt+Yg/C+tE="
|
|
|
|
];
|
2024-05-21 14:03:12 -05:00
|
|
|
trusted-users = ["root" "gitea-runner"];
|
2024-05-14 12:03:36 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = { self, sops-nix, nixpkgs, srvos, disko, ... }@inputs:
|
|
|
|
let
|
|
|
|
linuxMachineName = "linux";
|
|
|
|
lib = nixpkgs.lib;
|
|
|
|
inherit (self) outputs;
|
|
|
|
in {
|
|
|
|
nixosConfigurations =
|
|
|
|
{
|
2024-05-23 11:26:32 -05:00
|
|
|
"fj-hetzner-aarch64-01" = lib.nixosSystem {
|
2024-05-14 12:03:36 -05:00
|
|
|
system = "aarch64-linux";
|
|
|
|
specialArgs = {inherit inputs outputs;};
|
|
|
|
modules = [
|
2024-05-18 11:08:33 -05:00
|
|
|
sops-nix.nixosModules.sops
|
2024-05-14 12:03:36 -05:00
|
|
|
srvos.nixosModules.hardware-hetzner-cloud
|
|
|
|
srvos.nixosModules.server
|
|
|
|
srvos.nixosModules.mixins-systemd-boot
|
|
|
|
disko.nixosModules.disko
|
2024-05-23 11:26:32 -05:00
|
|
|
./agents/fj-hetzner-aarch64.nix
|
2024-05-14 12:03:36 -05:00
|
|
|
(import ./disko-hetzner-cloud.nix { disks = [ "/dev/sda" ]; })
|
|
|
|
{
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
2024-05-23 11:26:32 -05:00
|
|
|
networking.hostName = "fj-hetzner-aarch64-01";
|
|
|
|
users.users.root.openssh.authorizedKeys.keys =
|
|
|
|
[
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBsUe5YF5z8vGcEYtQX7AAiw2rJygGf2l7xxr8nZZa7w jahanson@legiondary"
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJyA/yMPPo+scxBaDFUk7WeEyMAMhXUro5vi4feOKsJT jahanson@durincore"
|
|
|
|
];
|
|
|
|
services.openssh.enable = true;
|
|
|
|
services.openssh.settings.PermitRootLogin = "without-password";
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
"fj-shadowfax-01" = lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
specialArgs = {inherit inputs outputs;};
|
|
|
|
modules = [
|
|
|
|
sops-nix.nixosModules.sops
|
2024-05-23 14:50:32 -05:00
|
|
|
./hardware/shadowfax-kubevirt.nix
|
2024-05-23 11:26:32 -05:00
|
|
|
srvos.nixosModules.server
|
|
|
|
srvos.nixosModules.mixins-systemd-boot
|
|
|
|
disko.nixosModules.disko
|
|
|
|
./agents/fj-shadowfax-x86_64.nix
|
2024-05-26 09:16:06 -05:00
|
|
|
(import ./disko-shadowfax-kubevirt.nix { disks = [ "/dev/sda" ]; })
|
2024-05-23 11:26:32 -05:00
|
|
|
{
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
networking.hostName = "fj-shadowfax-01";
|
|
|
|
users.users.root.openssh.authorizedKeys.keys =
|
|
|
|
[
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBsUe5YF5z8vGcEYtQX7AAiw2rJygGf2l7xxr8nZZa7w jahanson@legiondary"
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJyA/yMPPo+scxBaDFUk7WeEyMAMhXUro5vi4feOKsJT jahanson@durincore"
|
|
|
|
];
|
|
|
|
services.openssh.enable = true;
|
|
|
|
services.openssh.settings.PermitRootLogin = "without-password";
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
"fj-shadowfax-02" = lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
specialArgs = {inherit inputs outputs;};
|
|
|
|
modules = [
|
|
|
|
sops-nix.nixosModules.sops
|
2024-05-25 10:46:46 -05:00
|
|
|
./hardware/shadowfax-kubevirt.nix
|
2024-05-23 11:26:32 -05:00
|
|
|
srvos.nixosModules.server
|
|
|
|
srvos.nixosModules.mixins-systemd-boot
|
|
|
|
disko.nixosModules.disko
|
|
|
|
./agents/fj-shadowfax-x86_64.nix
|
2024-05-25 16:11:35 -05:00
|
|
|
(import ./disko-shadowfax-kubevirt.nix { disks = [ "/dev/sda" ]; })
|
2024-05-23 11:26:32 -05:00
|
|
|
{
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
networking.hostName = "fj-shadowfax-02";
|
2024-05-20 19:36:37 -05:00
|
|
|
users.users.root.openssh.authorizedKeys.keys =
|
|
|
|
[
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBsUe5YF5z8vGcEYtQX7AAiw2rJygGf2l7xxr8nZZa7w jahanson@legiondary"
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJyA/yMPPo+scxBaDFUk7WeEyMAMhXUro5vi4feOKsJT jahanson@durincore"
|
|
|
|
];
|
2024-05-14 12:03:36 -05:00
|
|
|
services.openssh.enable = true;
|
|
|
|
services.openssh.settings.PermitRootLogin = "without-password";
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|