forked from Fediversity/Fediversity
Add a deployment for forgejo-ci
This commit is contained in:
parent
4d5f26cde5
commit
52f659b9b2
6 changed files with 41 additions and 8 deletions
|
@ -155,6 +155,10 @@ let
|
||||||
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
# NOTE: `forgejo-ci`, being a physical machine and not a Proxmox VM, gets
|
||||||
|
# custom treatment.
|
||||||
|
imports = [ ./forgejo-ci/flake-part.nix ];
|
||||||
|
|
||||||
## - Each normal or test machine gets a NixOS configuration.
|
## - Each normal or test machine gets a NixOS configuration.
|
||||||
## - Each normal or test machine gets a VM options entry.
|
## - Each normal or test machine gets a VM options entry.
|
||||||
## - Each normal machine gets a deployment.
|
## - Each normal machine gets a deployment.
|
||||||
|
|
|
@ -38,7 +38,12 @@
|
||||||
|
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
|
|
||||||
users.users.root.hashedPassword = "$y$j9T$WXvLAUqArJJusuC017FCW0$.rfMOeyx/BsClkJFi5hLcynrSk.njWmfiB6Uy.9th3A";
|
users.users.root = {
|
||||||
|
hashedPassword = "$y$j9T$WXvLAUqArJJusuC017FCW0$.rfMOeyx/BsClkJFi5hLcynrSk.njWmfiB6Uy.9th3A";
|
||||||
|
openssh.authorizedKeys.keys = [
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEElREJN0AC7lbp+5X204pQ5r030IbgCllsIxyU3iiKY niols@wallace"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
users.users.procolix = {
|
users.users.procolix = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
|
@ -81,7 +86,5 @@
|
||||||
|
|
||||||
services.openssh.enable = true;
|
services.openssh.enable = true;
|
||||||
|
|
||||||
system.copySystemConfiguration = true;
|
|
||||||
|
|
||||||
system.stateVersion = "24.11"; # don't change
|
system.stateVersion = "24.11"; # don't change
|
||||||
}
|
}
|
||||||
|
|
23
infra/forgejo-ci/flake-part.nix
Normal file
23
infra/forgejo-ci/flake-part.nix
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
{ inputs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
nixops4Deployments.forgejo-ci =
|
||||||
|
{ providers, ... }:
|
||||||
|
{
|
||||||
|
providers.local = inputs.nixops4.modules.nixops4Provider.local;
|
||||||
|
|
||||||
|
resources.forgejo-ci = {
|
||||||
|
type = providers.local.exec;
|
||||||
|
imports = [ inputs.nixops4-nixos.modules.nixops4Resource.nixos ];
|
||||||
|
|
||||||
|
ssh = {
|
||||||
|
host = "45.142.234.216";
|
||||||
|
opts = "-J orianne";
|
||||||
|
hostPublicKey = (import ../../keys).systems.forgejo-ci;
|
||||||
|
};
|
||||||
|
|
||||||
|
nixpkgs = inputs.nixpkgs;
|
||||||
|
nixos.module = import ./configuration.nix;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
1
keys/systems/forgejo-ci.pub
Normal file
1
keys/systems/forgejo-ci.pub
Normal file
|
@ -0,0 +1 @@
|
||||||
|
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIFXQW5fxJoNY9wtTMsNExgbAbvyljIRGBLjY+USh/0A
|
|
@ -7,9 +7,10 @@ Currently, this repository keeps track of the following VMs:
|
||||||
|
|
||||||
Machine | Proxmox | Description
|
Machine | Proxmox | Description
|
||||||
--------|---------|-------------
|
--------|---------|-------------
|
||||||
[`fedi200`](./fedi200) | fediversity | Testing machine for Hans
|
[`fedi200`](./dev/fedi200) | fediversity | Testing machine for Hans
|
||||||
[`fedi201`](./fedi201) | fediversity | FediPanel
|
[`fedi201`](./dev/fedi201) | fediversity | FediPanel
|
||||||
[`vm02116`](./vm02116) | procolix | Forgejo
|
[`vm02116`](./dev/vm02116) | procolix | Forgejo
|
||||||
[`vm02187`](./vm02187) | procolix | Wiki
|
[`vm02187`](./dev/vm02187) | procolix | Wiki
|
||||||
|
| `forgejo-ci` | n/a (physical) | Forgejo actions runner |
|
||||||
|
|
||||||
This table excludes all machines with names starting with `test`.
|
This table excludes all machines with names starting with `test`.
|
||||||
|
|
|
@ -32,11 +32,12 @@ for machine in $(echo "$vmOptions" | jq -r 'keys[]'); do
|
||||||
description=$(echo "$vmOptions" | jq -r ".$machine.description" | head -n 1)
|
description=$(echo "$vmOptions" | jq -r ".$machine.description" | head -n 1)
|
||||||
|
|
||||||
# shellcheck disable=SC2016
|
# shellcheck disable=SC2016
|
||||||
printf '[`%s`](./%s) | %s | %s\n' "$machine" "$machine" "$proxmox" "$description"
|
printf '[`%s`](./dev/%s) | %s | %s\n' "$machine" "$machine" "$proxmox" "$description"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
cat <<\EOF
|
cat <<\EOF
|
||||||
|
| `forgejo-ci` | n/a (physical) | Forgejo actions runner |
|
||||||
|
|
||||||
This table excludes all machines with names starting with `test`.
|
This table excludes all machines with names starting with `test`.
|
||||||
EOF
|
EOF
|
||||||
|
|
Loading…
Add table
Reference in a new issue