blob: 032a092144503ab334ab19bf7c718ea5d3a3c7f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
{ self, me, lib, ... }:
let
inherit (lib) mkIf mkMerge;
renardCache = {
substituters = [ "https://cache.rnrd.eu" ];
trusted-public-keys = [ "cache.rnrd.eu-1:6Q2MPTZ6ycAzWcc0VzXR+pKRlJ+6kfdQfj6iRsN5s1I=" ];
};
in
{
nix = {
optimise = {
automatic = true;
dates = [ "06:00" ];
};
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 14d";
};
# add compat scripts to the environment,
# to allow nixos-option to find the configuration
nixPath = [
"nixpkgs=${self}/compat"
"nixos-config=${self}/compat/nixos"
];
settings = mkMerge [
{
experimental-features = [ "flakes" "nix-command" ];
trusted-users = [ "root" "mel" ];
}
(mkIf (!me.is.renard) renardCache)
];
};
}
|