mirror of
https://github.com/RichieCahill/dotfiles.git
synced 2026-04-17 04:58:19 -04:00
harding nix_builder.nix
This commit is contained in:
@@ -28,6 +28,8 @@ in
|
|||||||
name: cfg:
|
name: cfg:
|
||||||
mkIf cfg.enable {
|
mkIf cfg.enable {
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
privateNetwork = true;
|
||||||
|
ephemeral = true;
|
||||||
bindMounts = {
|
bindMounts = {
|
||||||
storage = {
|
storage = {
|
||||||
mountPoint = "/zfs/media/github-runners/${name}";
|
mountPoint = "/zfs/media/github-runners/${name}";
|
||||||
@@ -38,7 +40,10 @@ in
|
|||||||
hostPath = "/nix/var/nix/daemon-socket";
|
hostPath = "/nix/var/nix/daemon-socket";
|
||||||
isReadOnly = false;
|
isReadOnly = false;
|
||||||
};
|
};
|
||||||
secrets.mountPoint = "${vars.secrets}/services/github-runners/${name}";
|
secrets = {
|
||||||
|
mountPoint = "${vars.secrets}/services/github-runners/${name}";
|
||||||
|
isReadOnly = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
config =
|
config =
|
||||||
{
|
{
|
||||||
@@ -68,6 +73,12 @@ in
|
|||||||
"flakes"
|
"flakes"
|
||||||
"nix-command"
|
"nix-command"
|
||||||
];
|
];
|
||||||
|
sandbox = true;
|
||||||
|
allowed-users = [ "github-runners" ];
|
||||||
|
trusted-users = [
|
||||||
|
"root"
|
||||||
|
"github-runners"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
overlays = builtins.attrValues outputs.overlays;
|
overlays = builtins.attrValues outputs.overlays;
|
||||||
|
|||||||
Reference in New Issue
Block a user