2023-04-01 22:20:34 +02:00
|
|
|
{ lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
documentation = {
|
|
|
|
doc.enable = false;
|
|
|
|
info.enable = false;
|
2024-01-07 02:51:46 +01:00
|
|
|
man.enable = true;
|
2023-04-01 22:20:34 +02:00
|
|
|
nixos.enable = lib.mkDefault false;
|
|
|
|
};
|
|
|
|
|
|
|
|
nix.gc = {
|
|
|
|
automatic = true;
|
2023-07-30 15:32:50 +02:00
|
|
|
options = "--delete-older-than 14d";
|
2023-04-01 22:20:34 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nix.settings = {
|
|
|
|
auto-optimise-store = true;
|
|
|
|
experimental-features = "nix-command flakes";
|
|
|
|
trusted-users = [ "root" "@wheel" ];
|
|
|
|
};
|
2023-08-18 21:06:50 +02:00
|
|
|
|
|
|
|
# Let <nixpkgs> be the used system packages, such that `nix-shell` can pick them up
|
|
|
|
environment.etc.nixpkgs.source = lib.cleanSource pkgs.path;
|
|
|
|
nix.nixPath = [ "nixpkgs=/etc/nixpkgs" ];
|
2024-03-05 10:47:52 +01:00
|
|
|
|
|
|
|
nix.registry = {
|
|
|
|
nixpkgs.to = {
|
|
|
|
type = "path";
|
|
|
|
path = lib.cleanSource pkgs.path;
|
|
|
|
};
|
|
|
|
};
|
2023-04-01 22:20:34 +02:00
|
|
|
}
|