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 coreutils
wget wget
gnused gnused
# agenix.packages.x86_64-linux.default
]; ];
}; };
}; };
age.secrets."services/gitea/runner-token" = { age.secrets."services/gitea/runner-token" = {
file = ../../../secrets/services/gitea/runner-token.age; file = ../../../secrets/services/gitea/runner-token.age;
owner = "gitea-runner"; owner = "gitea-runner";
}; };
} }

View File

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