hosts: dmz: work on microvm

This commit is contained in:
Kabbone 2023-10-22 10:59:34 +02:00
parent dd4e018dcd
commit c7bfedf54c
Signed by: Kabbone
SSH Key Fingerprint: SHA256:A5zPB5I6u5V78V51c362BBdCwhDhfDUVbt7NfKdjWBY
3 changed files with 9 additions and 9 deletions

View File

@ -111,8 +111,7 @@ in
server = lib.nixosSystem { # Desktop profile
inherit system;
specialArgs = { inherit inputs userserver location nixos-hardware nur agenix; };
user = userserver;
specialArgs = { inherit inputs user location nixos-hardware nur agenix; };
modules = [
agenix.nixosModules.default
nur.nixosModules.nur

View File

@ -17,7 +17,7 @@
# └─ default.nix
#
{ config, pkgs, user, ... }:
{ config, pkgs, user, agenix, ... }:
{
imports = # For now, if applying to other system, swap files

View File

@ -1,15 +1,16 @@
{ microvm, nixpkgs, user, ... }:
{ microvm, nixpkgs, user, agenix, ... }:
let
name = "gitea";
name = "gitea-runner";
in
{
microvm = {
# autostart = [
# "gitea-runnervm"
# ];
autostart = [
"gitea-runnervm"
];
vms = {
${name} = {
pkgs = import nixpkgs {
system = "x86_64-linux";
config.allowUnfree = true;
@ -18,7 +19,7 @@ in
config = {
imports = [( ./gitea_runner.nix )];
networking = {
hostName = "${name}-runner";
hostName = "${name}";
firewall = {
enable = true;