S3 cache setup

This commit is contained in:
Filippo Berto 2024-09-08 22:09:25 +02:00
parent 75726dc403
commit 7720224bbd
Signed by: bertof
GPG key ID: 9DBF7E6A1D2CE9ED
8 changed files with 45 additions and 1 deletions

View file

@ -1,7 +1,11 @@
{
security.sudo.wheelNeedsPassword = false;
nix.settings = {
substituters = [ "https://hyprland.cachix.org" ];
substituters = [
"s3://nix-cache?endpoint=heimdall.tsn:9000&scheme=http"
"s3://nix-cache?endpoint=s3.bertof.net"
"https://hyprland.cachix.org"
];
trusted-users = [
"root"

View file

@ -0,0 +1,4 @@
{ config, ... }: {
age.secrets.s3_cache_read.file = ../../secrets/s3_cache_read.age;
systemd.services.nix-daemon.serviceConfig.EnvironmentFile = config.age.secrets.s3_cache_read.path;
}

View file

@ -0,0 +1,5 @@
{ config, lib, ... }: {
age.secrets.s3_cache_write.file = ../../secrets/s3_cache_write.age;
systemd.services.nix-daemon.serviceConfig.EnvironmentFile = lib.mkForce config.age.secrets.s3_cache_write.path;
}