33 lines
697 B
Nix
33 lines
697 B
Nix
{ lib, pkgs, ... }:
|
|
|
|
{
|
|
documentation = {
|
|
doc.enable = false;
|
|
info.enable = false;
|
|
man.enable = true;
|
|
nixos.enable = lib.mkDefault false;
|
|
};
|
|
|
|
nix.gc = {
|
|
automatic = true;
|
|
options = "--delete-older-than 14d";
|
|
};
|
|
|
|
nix.settings = {
|
|
auto-optimise-store = true;
|
|
experimental-features = "nix-command flakes";
|
|
trusted-users = [ "root" "@wheel" ];
|
|
};
|
|
|
|
# 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" ];
|
|
|
|
nix.registry = {
|
|
nixpkgs.to = {
|
|
type = "path";
|
|
path = lib.cleanSource pkgs.path;
|
|
};
|
|
};
|
|
}
|