hosts: server: fix gitea runner
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user