mirror of
https://github.com/srid/nixos-config.git
synced 2026-05-11 17:36:07 +08:00
hercules: unconditional trust [nix]
Ref: https://github.com/hercules-ci/hercules-ci-agent/issues/345#issuecomment-986329977
This commit is contained in:
parent
e36a0ad6d6
commit
59d48328f8
7 changed files with 10 additions and 5 deletions
|
|
@ -11,6 +11,14 @@
|
|||
"https://hercules-ci.cachix.org"
|
||||
];
|
||||
|
||||
# FIXME: User id of `hercules-ci-agent` won't match that of guest, so we do
|
||||
# this. But it compromises security. See
|
||||
# https://github.com/hercules-ci/hercules-ci-agent/issues/345#issuecomment-986329977
|
||||
#
|
||||
# TODO: Find a way to resolve this.
|
||||
nix.allowedUsers = [ "*" ];
|
||||
nix.trustedUsers = [ "*" ];
|
||||
|
||||
containers.hercules = {
|
||||
ephemeral = false;
|
||||
autoStart = true;
|
||||
|
|
@ -20,6 +28,7 @@
|
|||
];
|
||||
services.hercules-ci-agent.enable = true;
|
||||
services.hercules-ci-agent.settings.concurrentTasks = 4;
|
||||
services.hercules-ci-agent.settings.nixUserIsTrusted = lib.mkForce false;
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ ];
|
||||
};
|
||||
|
|
|
|||
|
|
@ -20,4 +20,5 @@
|
|||
};
|
||||
};
|
||||
nix.allowedUsers = [ "root" "srid" ];
|
||||
nix.trustedUsers = [ "root" "srid" ];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@
|
|||
extraOptions = ''
|
||||
experimental-features = nix-command flakes
|
||||
'';
|
||||
trustedUsers = [ "root" "srid" ];
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
|
|
|
|||
|
|
@ -105,7 +105,6 @@
|
|||
extraOptions = ''
|
||||
experimental-features = nix-command flakes
|
||||
'';
|
||||
trustedUsers = [ "root" "srid" ];
|
||||
};
|
||||
|
||||
services.netdata.enable = true;
|
||||
|
|
|
|||
|
|
@ -104,7 +104,6 @@
|
|||
extraOptions = ''
|
||||
experimental-features = nix-command flakes
|
||||
'';
|
||||
trustedUsers = [ "root" "srid" ];
|
||||
};
|
||||
|
||||
services.netdata.enable = true;
|
||||
|
|
|
|||
|
|
@ -57,7 +57,6 @@
|
|||
extraOptions = ''
|
||||
experimental-features = nix-command flakes
|
||||
'';
|
||||
trustedUsers = [ "root" "srid" ];
|
||||
};
|
||||
|
||||
networking.hostName = "thick"; # Define your hostname.
|
||||
|
|
|
|||
|
|
@ -41,7 +41,6 @@
|
|||
extraOptions = ''
|
||||
experimental-features = nix-command flakes
|
||||
'';
|
||||
trustedUsers = [ "root" "srid" ];
|
||||
};
|
||||
|
||||
networking.hostName = "thin";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue