Use attic as nixos binary cache and update CI accordingly
Some checks failed
Check Flake / check-flake (push) Failing after 8s
Some checks failed
Check Flake / check-flake (push) Failing after 8s
This commit is contained in:
@@ -6,11 +6,11 @@
|
||||
substituters = [
|
||||
"https://cache.nixos.org/"
|
||||
"https://nix-community.cachix.org"
|
||||
"http://s0.koi-bebop.ts.net:5000"
|
||||
"http://s0.koi-bebop.ts.net:28338/nixos"
|
||||
];
|
||||
trusted-public-keys = [
|
||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||
"s0.koi-bebop.ts.net:OjbzD86YjyJZpCp9RWaQKANaflcpKhtzBMNP8I2aPUU="
|
||||
"nixos:IDhKojUaMz+UIiri1/DQk9EpqDokih8dwxmp41uJnls="
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
@@ -63,6 +63,7 @@
|
||||
lf
|
||||
gnumake
|
||||
tree
|
||||
attic
|
||||
];
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
37
common/server/atticd.nix
Normal file
37
common/server/atticd.nix
Normal file
@@ -0,0 +1,37 @@
|
||||
{ config, lib, ... }:
|
||||
|
||||
let
|
||||
cfg = config.services.atticd;
|
||||
in
|
||||
{
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.atticd = {
|
||||
credentialsFile = "/run/agenix/atticd-credentials";
|
||||
|
||||
settings = {
|
||||
listen = "[::]:28338";
|
||||
|
||||
chunking = {
|
||||
# Disable chunking for performance (I have plenty of space)
|
||||
nar-size-threshold = 0;
|
||||
|
||||
# Chunking is disabled due to poor performance so these values don't matter but are required anyway.
|
||||
# One day, when I move away from ZFS maybe this will perform well enough.
|
||||
# nar-size-threshold = 64 * 1024; # 64 KiB
|
||||
min-size = 16 * 1024; # 16 KiB
|
||||
avg-size = 64 * 1024; # 64 KiB
|
||||
max-size = 256 * 1024; # 256 KiB
|
||||
};
|
||||
|
||||
# Disable compression for performance (I have plenty of space)
|
||||
compression.type = "none";
|
||||
|
||||
garbage-collection = {
|
||||
default-retention-period = "6 months";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
age.secrets.atticd-credentials.file = ../../secrets/atticd-credentials.age;
|
||||
};
|
||||
}
|
||||
@@ -22,5 +22,6 @@
|
||||
./dashy.nix
|
||||
./librechat.nix
|
||||
./actualbudget.nix
|
||||
./atticd.nix
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user