nixsgx for everyone
Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
This commit is contained in:
parent
eafb5c1455
commit
94d0ada223
|
@ -48,6 +48,9 @@ in
|
|||
let
|
||||
users = [ "root" config.plusultra.user.name ] ++
|
||||
optional config.services.hydra.enable "hydra";
|
||||
extra-substituters = cfg.extra-substituters // {
|
||||
"https://nixsgx.cachix.org".key = "nixsgx.cachix.org-1:tGi36DlY2joNsIXOlGnSgWW0+E094V6hW0umQRo/KoE=";
|
||||
};
|
||||
in
|
||||
{
|
||||
package = cfg.package;
|
||||
|
@ -65,11 +68,11 @@ in
|
|||
substituters =
|
||||
[ cfg.default-substituter.url ]
|
||||
++
|
||||
(mapAttrsToList (name: value: name) cfg.extra-substituters);
|
||||
(mapAttrsToList (name: value: name) extra-substituters);
|
||||
trusted-public-keys =
|
||||
[ cfg.default-substituter.key ]
|
||||
++
|
||||
(mapAttrsToList (name: value: value.key) cfg.extra-substituters);
|
||||
(mapAttrsToList (name: value: value.key) extra-substituters);
|
||||
|
||||
} // (lib.optionalAttrs config.plusultra.tools.direnv.enable {
|
||||
keep-outputs = true;
|
||||
|
|
|
@ -8,7 +8,6 @@ with lib.plusultra;
|
|||
base.enable = true;
|
||||
nix-ld.enable = true;
|
||||
nix.enable = true;
|
||||
nix.extra-substituters."https://nixsgx.cachix.org".key = "nixsgx.cachix.org-1:tGi36DlY2joNsIXOlGnSgWW0+E094V6hW0umQRo/KoE=";
|
||||
user.extraGroups = [ "docker" "sgx" ];
|
||||
};
|
||||
|
||||
|
|
|
@ -14,7 +14,6 @@ in
|
|||
gui.enable = false;
|
||||
nix-ld.enable = true;
|
||||
nix.enable = true;
|
||||
nix.extra-substituters."https://nixsgx.cachix.org".key = "nixsgx.cachix.org-1:tGi36DlY2joNsIXOlGnSgWW0+E094V6hW0umQRo/KoE=";
|
||||
pccs.enable = true;
|
||||
pccs.secret = config.sops.secrets.pccs.path;
|
||||
podman.enable = true;
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
gui.enable = true;
|
||||
nix-ld.enable = true;
|
||||
nix.enable = true;
|
||||
nix.extra-substituters."https://nixsgx.cachix.org".key = "nixsgx.cachix.org-1:tGi36DlY2joNsIXOlGnSgWW0+E094V6hW0umQRo/KoE=";
|
||||
podman.enable = true;
|
||||
secureboot.enable = true;
|
||||
};
|
||||
|
|
|
@ -9,7 +9,6 @@ with lib.plusultra;
|
|||
gui.enable = true;
|
||||
nix-ld.enable = true;
|
||||
nix.enable = true;
|
||||
nix.extra-substituters."https://nixsgx.cachix.org".key = "nixsgx.cachix.org-1:tGi36DlY2joNsIXOlGnSgWW0+E094V6hW0umQRo/KoE=";
|
||||
podman.enable = true;
|
||||
secureboot.enable = true;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue