S3 cache setup
This commit is contained in:
parent
75726dc403
commit
7720224bbd
8 changed files with 45 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
4
modules/nixos/s3_cache_read.nix
Normal file
4
modules/nixos/s3_cache_read.nix
Normal 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;
|
||||
}
|
||||
5
modules/nixos/s3_cache_write.nix
Normal file
5
modules/nixos/s3_cache_write.nix
Normal 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;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue