panel working again locally

This commit is contained in:
Kiara Grouwstra 2025-04-21 20:55:48 +02:00
parent f0f0a7988d
commit dbd45b7027
Signed by: kiara
SSH key fingerprint: SHA256:COspvLoLJ5WC5rFb9ZDe5urVCkK4LJZOsjfF4duRJFU
4 changed files with 9 additions and 22 deletions

View file

@ -19,7 +19,7 @@ jobs:
runs-on: native
steps:
- uses: actions/checkout@v4
- run: cd services && nix-build -A tests
- run: cd services && nix-build -A tests.peertube
check-panel:
runs-on: native

View file

@ -8,7 +8,7 @@ module "nixos" {
vm_domain = local.vm_domain
hostname = each.value.hostname
config_nix = each.value.config_nix
config_tf = each.value.config_nix
config_tf = each.value.config_tf
for_each = { for name, inst in {
wiki = "vm02187"
@ -18,7 +18,7 @@ module "nixos" {
demo = "fedi201"
} : name => {
hostname = inst
config_nix = {
config_tf = {
terraform = {
domain = local.vm_domain
hostname = inst

View file

@ -35,15 +35,15 @@ module "nixos" {
vm_domain = local.vm_domain
hostname = each.value.hostname
config_nix = each.value.config_nix
config_tf = each.value.config_nix
config_tf = each.value.config_tf
for_each = {for name, inst in merge(
local.peripherals,
local.application_configs,
) : name => merge(inst, {
config_nix = {
config_tf = {
terraform = {
domain = local.vm_domain
domain = var.domain
hostname = inst.hostname
initialUser = var.initialUser
}
@ -57,14 +57,14 @@ module "nixos" {
# FIXME: separate template options by service
${path.root}/options.nix
# for service `mastodon` import `mastodon.nix`
${path.root}/../../machines/operator/${name}.nix
${path.root}/../../machines/operator/${inst.hostname}/${name}.nix
# FIXME: get VM details from TF
${path.root}/../../machines/operator/${inst.hostname}
];
## FIXME: switch root authentication to users with password-less sudo, see #24
users.users.root.openssh.authorizedKeys.keys = let
keys = import ../keys;
in attrValues keys.contributors ++ [
keys = import ../../keys;
in builtins.attrValues keys.contributors ++ [
# allow our panel vm access to the test machines
keys.panel
];

View file

@ -42,19 +42,6 @@
"url": "https://github.com/fricklerhandwerk/flake-inputs/archive/559574c9cbb8af262f3944b67d60fbf0f6ad03c3.tar.gz",
"hash": "0gbhmp6x2vdzvfnsvqzal3g8f8hx2ia6r73aibc78kazf78m67x6"
},
"flake-parts": {
"type": "Git",
"repository": {
"type": "GitHub",
"owner": "hercules-ci",
"repo": "flake-parts"
},
"branch": "main",
"submodules": false,
"revision": "c621e8422220273271f52058f618c94e405bb0f5",
"url": "https://github.com/hercules-ci/flake-parts/archive/c621e8422220273271f52058f618c94e405bb0f5.tar.gz",
"hash": "09j2dafd75ydlcw8v48vcpfm2mw0j6cs8286x2hha2lr08d232w4"
},
"git-hooks": {
"type": "Git",
"repository": {