Make gitea-runner docker work

This commit is contained in:
Ivan Malison 2024-03-11 23:53:55 -06:00
parent 6f2f2c54a7
commit 6e0427d4e0

View File

@ -21,6 +21,7 @@ makeEnable config "modules.gitea-runner" false {
}; };
hostPackages = with pkgs; [ hostPackages = with pkgs; [
bash bash
direnv
coreutils coreutils
curl curl
gawk gawk
@ -29,6 +30,8 @@ makeEnable config "modules.gitea-runner" false {
gitFull gitFull
gnused gnused
nodejs nodejs
docker
openssh
wget wget
]; ];
enable = true; enable = true;
@ -46,4 +49,8 @@ makeEnable config "modules.gitea-runner" false {
XDG_CONFIG_HOME = gitea-runner-directory; XDG_CONFIG_HOME = gitea-runner-directory;
XDG_CACHE_HOME = "${gitea-runner-directory}/.cache"; XDG_CACHE_HOME = "${gitea-runner-directory}/.cache";
}; };
users.users.gitea-runner = {
extraGroups = ["docker"];
home = "/var/lib/gitea-runner";
};
} }