hosts: server: fix gitea runner

This commit is contained in:
2024-04-13 12:00:44 +02:00
parent 21ecad4db0
commit 9ee26c983e
3 changed files with 58 additions and 32 deletions

View File

@@ -3,7 +3,6 @@ let
name = "gitea-runner";
in
{
microvm = {
autostart = [
name
@@ -14,11 +13,6 @@ in
inherit pkgs;
config = {
#pkgs = import nixpkgs {
# system = "x86_64-linux";
# config.allowUnfree = true;
#};
imports =
[ agenix.nixosModules.default ] ++
[ impermanence.nixosModules.impermanence ] ++
@@ -46,7 +40,6 @@ in
};
};
users.users.${user} = { # System User
isNormalUser = true;
extraGroups = [ "wheel" ];
@@ -77,15 +70,27 @@ in
fileSystems."/persist".neededForBoot = lib.mkForce true;
environment.persistence."/persist" = {
environment = {
systemPackages = with pkgs; [ # Default packages install system-wide
bash
coreutils
curl
gawk
gitMinimal
gnused
nodejs
wget
];
persistence."/persist" = {
directories = [
"/var/log"
"/var/lib"
"/var/lib/private"
];
files = [
"/etc/machine-id"
];
};
};
microvm = {