nixos/modules/nix.nix
Gerg-L f43d0b741c systems -> hosts
moved functions to /lib

inputs over imports

turned each module file into a nixosModule

moved registry and $NIX_PATH pinning to /modules/pinning.nix
2023-06-24 23:52:04 -04:00

22 lines
606 B
Nix

inputs: {pkgs, ...}: {
#other nix settings
nix = {
package = inputs.nix.packages.${pkgs.system}.default;
settings = {
experimental-features = ["nix-command" "flakes" "repl-flake"];
auto-optimise-store = true;
warn-dirty = false;
#ignore global registry
flake-registry = builtins.toFile "empty-flake-registry.json" ''{"flakes":[],"version":2}'';
use-xdg-base-directories = true;
#use for testing
#allow-import-from-derivation = false;
trusted-users = [
"root"
"@wheel"
];
allowed-users = [
];
};
};
}