forked from fediversity/fediversity
panel working again locally
This commit is contained in:
parent
f0f0a7988d
commit
dbd45b7027
4 changed files with 9 additions and 22 deletions
|
|
@ -19,7 +19,7 @@ jobs:
|
||||||
runs-on: native
|
runs-on: native
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- run: cd services && nix-build -A tests
|
- run: cd services && nix-build -A tests.peertube
|
||||||
|
|
||||||
check-panel:
|
check-panel:
|
||||||
runs-on: native
|
runs-on: native
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ module "nixos" {
|
||||||
vm_domain = local.vm_domain
|
vm_domain = local.vm_domain
|
||||||
hostname = each.value.hostname
|
hostname = each.value.hostname
|
||||||
config_nix = each.value.config_nix
|
config_nix = each.value.config_nix
|
||||||
config_tf = each.value.config_nix
|
config_tf = each.value.config_tf
|
||||||
|
|
||||||
for_each = { for name, inst in {
|
for_each = { for name, inst in {
|
||||||
wiki = "vm02187"
|
wiki = "vm02187"
|
||||||
|
|
@ -18,7 +18,7 @@ module "nixos" {
|
||||||
demo = "fedi201"
|
demo = "fedi201"
|
||||||
} : name => {
|
} : name => {
|
||||||
hostname = inst
|
hostname = inst
|
||||||
config_nix = {
|
config_tf = {
|
||||||
terraform = {
|
terraform = {
|
||||||
domain = local.vm_domain
|
domain = local.vm_domain
|
||||||
hostname = inst
|
hostname = inst
|
||||||
|
|
|
||||||
|
|
@ -35,15 +35,15 @@ module "nixos" {
|
||||||
vm_domain = local.vm_domain
|
vm_domain = local.vm_domain
|
||||||
hostname = each.value.hostname
|
hostname = each.value.hostname
|
||||||
config_nix = each.value.config_nix
|
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(
|
for_each = {for name, inst in merge(
|
||||||
local.peripherals,
|
local.peripherals,
|
||||||
local.application_configs,
|
local.application_configs,
|
||||||
) : name => merge(inst, {
|
) : name => merge(inst, {
|
||||||
config_nix = {
|
config_tf = {
|
||||||
terraform = {
|
terraform = {
|
||||||
domain = local.vm_domain
|
domain = var.domain
|
||||||
hostname = inst.hostname
|
hostname = inst.hostname
|
||||||
initialUser = var.initialUser
|
initialUser = var.initialUser
|
||||||
}
|
}
|
||||||
|
|
@ -57,14 +57,14 @@ module "nixos" {
|
||||||
# FIXME: separate template options by service
|
# FIXME: separate template options by service
|
||||||
${path.root}/options.nix
|
${path.root}/options.nix
|
||||||
# for service `mastodon` import `mastodon.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
|
# FIXME: get VM details from TF
|
||||||
${path.root}/../../machines/operator/${inst.hostname}
|
${path.root}/../../machines/operator/${inst.hostname}
|
||||||
];
|
];
|
||||||
## FIXME: switch root authentication to users with password-less sudo, see #24
|
## FIXME: switch root authentication to users with password-less sudo, see #24
|
||||||
users.users.root.openssh.authorizedKeys.keys = let
|
users.users.root.openssh.authorizedKeys.keys = let
|
||||||
keys = import ../keys;
|
keys = import ../../keys;
|
||||||
in attrValues keys.contributors ++ [
|
in builtins.attrValues keys.contributors ++ [
|
||||||
# allow our panel vm access to the test machines
|
# allow our panel vm access to the test machines
|
||||||
keys.panel
|
keys.panel
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -42,19 +42,6 @@
|
||||||
"url": "https://github.com/fricklerhandwerk/flake-inputs/archive/559574c9cbb8af262f3944b67d60fbf0f6ad03c3.tar.gz",
|
"url": "https://github.com/fricklerhandwerk/flake-inputs/archive/559574c9cbb8af262f3944b67d60fbf0f6ad03c3.tar.gz",
|
||||||
"hash": "0gbhmp6x2vdzvfnsvqzal3g8f8hx2ia6r73aibc78kazf78m67x6"
|
"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": {
|
"git-hooks": {
|
||||||
"type": "Git",
|
"type": "Git",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue