hosts: dmz: work on microvm

This commit is contained in:
Kabbone 2024-01-18 17:42:23 +01:00
parent 747a9abd01
commit e2f0c80e31
Signed by: Kabbone
SSH Key Fingerprint: SHA256:A5zPB5I6u5V78V51c362BBdCwhDhfDUVbt7NfKdjWBY
2 changed files with 12 additions and 7 deletions

View File

@ -25,12 +25,13 @@
coreutils
wget
gnused
# agenix.packages.x86_64-linux.default
];
};
};
age.secrets."services/gitea/runner-token" = {
file = ../../../secrets/services/gitea/runner-token.age;
owner = "gitea-runner";
};
age.secrets."services/gitea/runner-token" = {
file = ../../../secrets/services/gitea/runner-token.age;
owner = "gitea-runner";
};
}

View File

@ -1,4 +1,4 @@
{ microvm, nixpkgs, user, agenix, ... }:
{ config, microvm, nixpkgs, user, agenix, ... }:
let
name = "gitea-runner";
in
@ -10,14 +10,18 @@ in
vms = {
${name} = {
pkgs = import nixpkgs {
system = "x86_64-linux";
config.allowUnfree = true;
};
#inherit pkgs;
config = {
imports = [( ./gitea_runner.nix )];
imports =
[ agenix.nixosModules.default ] ++
[( ./gitea_runner.nix )];
networking = {
hostName = "${name}";