From e2f0c80e31ffa885dac221e4a27fea878e50f9f8 Mon Sep 17 00:00:00 2001 From: Kabbone Date: Thu, 18 Jan 2024 17:42:23 +0100 Subject: [PATCH] hosts: dmz: work on microvm --- modules/services/dmz/gitea_runner.nix | 9 +++++---- modules/services/dmz/microvm.nix | 10 +++++++--- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/modules/services/dmz/gitea_runner.nix b/modules/services/dmz/gitea_runner.nix index 2bd8364..cec042b 100644 --- a/modules/services/dmz/gitea_runner.nix +++ b/modules/services/dmz/gitea_runner.nix @@ -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"; + }; } diff --git a/modules/services/dmz/microvm.nix b/modules/services/dmz/microvm.nix index e5eacca..556737c 100644 --- a/modules/services/dmz/microvm.nix +++ b/modules/services/dmz/microvm.nix @@ -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}";