feat(nix): sign nix store packages
This commit is contained in:
parent
cc6c5c50b5
commit
b8b0ae34c6
5 changed files with 14 additions and 5 deletions
|
@ -1,7 +1,12 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
nix.settings.substituters = lib.mkIf (config.networking.hostName != "Infini-DESKTOP" && config.info.loc.home)
|
||||
((if config.info.loc.home then (lib.mkOrder 300) else lib.mkAfter) [
|
||||
"ssh://infini-desktop"
|
||||
]);
|
||||
nix.settings = {
|
||||
substituters = lib.mkIf (config.networking.hostName != "Infini-DESKTOP" && config.info.loc.home)
|
||||
((if config.info.loc.home then (lib.mkOrder 300) else lib.mkAfter) [
|
||||
"ssh://infini-desktop"
|
||||
]);
|
||||
trusted-public-keys = [
|
||||
"infinidoge-1:uw2A6JHHdGJ9GPk0NEDnrdfVkPp0CUY3zIvwVgNlrSk="
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -29,7 +29,9 @@ with lib;
|
|||
keep-outputs = true
|
||||
keep-derivations = true
|
||||
fallback = true
|
||||
'';
|
||||
'' + (if config.modules.secrets.enable then ''
|
||||
secret-key-files = ${config.secrets.binary-cache-private-key}
|
||||
'' else "");
|
||||
|
||||
# nixPath = [
|
||||
# "nixpkgs=${channel.input}"
|
||||
|
|
BIN
secrets/binary-cache-private-key.age
Normal file
BIN
secrets/binary-cache-private-key.age
Normal file
Binary file not shown.
1
secrets/binary-cache-public-key
Normal file
1
secrets/binary-cache-public-key
Normal file
|
@ -0,0 +1 @@
|
|||
infinidoge-1:uw2A6JHHdGJ9GPk0NEDnrdfVkPp0CUY3zIvwVgNlrSk=
|
|
@ -20,4 +20,5 @@ in
|
|||
"wireless.age".publicKeys = allKeys;
|
||||
"infinidoge-password.age".publicKeys = allKeys;
|
||||
"root-password.age".publicKeys = allKeys;
|
||||
"binary-cache-private-key.age".publicKeys = allKeys;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue