2023-09-22 21:11:15 +02:00
|
|
|
{ lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
clerie.nixfiles.enable = true;
|
|
|
|
|
2024-03-14 20:30:37 +01:00
|
|
|
clerie.system-auto-upgrade.enable = true;
|
2023-12-15 20:20:53 +01:00
|
|
|
|
2023-09-22 21:11:15 +02:00
|
|
|
nix.settings = {
|
|
|
|
trusted-users = [ "@wheel" "@guests" ];
|
|
|
|
auto-optimise-store = true;
|
|
|
|
# Keep buildtime dependencies
|
|
|
|
keep-outputs = true;
|
|
|
|
# Build local, when caches are broken
|
|
|
|
fallback = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nix.gc = lib.mkDefault {
|
|
|
|
automatic = true;
|
|
|
|
dates = "weekly";
|
|
|
|
options = "--delete-older-than 30d";
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
nix.settings = {
|
|
|
|
experimental-features = [
|
|
|
|
"flakes"
|
|
|
|
"nix-command"
|
|
|
|
"repl-flake"
|
|
|
|
];
|
|
|
|
substituters = [
|
|
|
|
"https://nix-cache.clerie.de"
|
|
|
|
];
|
|
|
|
trusted-public-keys = [
|
|
|
|
"nix-cache.clerie.de:bAt1GJTS9BOTcXFWj3nURrSlcjqikCev9yDvqArMP5g="
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
# Pin current nixpkgs channel and flake registry to the nixpkgs version
|
|
|
|
# the host got build with
|
|
|
|
nix.nixPath = lib.mkForce [ "nixpkgs=${lib.cleanSource pkgs.path}" ];
|
|
|
|
nix.registry = lib.mkForce {
|
|
|
|
"nixpkgs" = {
|
|
|
|
from = {
|
|
|
|
type = "indirect";
|
|
|
|
id = "nixpkgs";
|
|
|
|
};
|
|
|
|
to = {
|
|
|
|
type = "path";
|
|
|
|
path = lib.cleanSource pkgs.path;
|
|
|
|
};
|
|
|
|
exact = true;
|
|
|
|
};
|
2024-03-14 19:41:59 +01:00
|
|
|
"templates" = {
|
|
|
|
from = {
|
|
|
|
type = "indirect";
|
|
|
|
id = "templates";
|
|
|
|
};
|
|
|
|
to = {
|
|
|
|
type = "git";
|
|
|
|
url = "https://git.clerie.de/clerie/flake-templates.git";
|
|
|
|
};
|
|
|
|
};
|
2023-09-22 21:11:15 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
documentation.doc.enable = false;
|
|
|
|
|
|
|
|
}
|