add cache priv key to nix.conf
This commit is contained in:
parent
073e118366
commit
36d1097c26
1 changed files with 12 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ inputs, ... }:
|
{ inputs, config, ... }:
|
||||||
{
|
{
|
||||||
nix = {
|
nix = {
|
||||||
settings = {
|
settings = {
|
||||||
|
@ -9,7 +9,7 @@
|
||||||
"root"
|
"root"
|
||||||
"@wheel"
|
"@wheel"
|
||||||
];
|
];
|
||||||
trusted-public-keys = [
|
extra-trusted-public-keys = [
|
||||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||||
"nixcache.cy7.sh:DN3d1dt0wnXfTH03oVmTee4KgmdNdB0NY3SuzA8Fwx8="
|
"nixcache.cy7.sh:DN3d1dt0wnXfTH03oVmTee4KgmdNdB0NY3SuzA8Fwx8="
|
||||||
];
|
];
|
||||||
|
@ -17,6 +17,9 @@
|
||||||
"https://nix-community.cachix.org"
|
"https://nix-community.cachix.org"
|
||||||
"https://nixcache.cy7.sh"
|
"https://nixcache.cy7.sh"
|
||||||
];
|
];
|
||||||
|
secret-key-files = [
|
||||||
|
config.sops.secrets.cache-priv-key.path
|
||||||
|
];
|
||||||
};
|
};
|
||||||
channel.enable = false;
|
channel.enable = false;
|
||||||
optimise = {
|
optimise = {
|
||||||
|
@ -74,4 +77,11 @@
|
||||||
|
|
||||||
services.thermald.enable = true;
|
services.thermald.enable = true;
|
||||||
environment.enableAllTerminfo = true;
|
environment.enableAllTerminfo = true;
|
||||||
|
|
||||||
|
sops.secrets.cache-priv-key = {
|
||||||
|
format = "binary";
|
||||||
|
sopsFile = ../secrets/cache-priv-key.pem;
|
||||||
|
mode = "0440";
|
||||||
|
group = "users";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue