nixfiles/profiles/base/nix.nix

20 lines
420 B
Nix
Raw Normal View History

2021-12-20 23:48:26 +00:00
{ inputs, config, lib, ... }: {
nix = {
nixPath = [
"nixpkgs=${inputs.nixpkgs}"
];
extraOptions = lib.optionalString (lib.versionAtLeast config.nix.package.version "2.4") ''
experimental-features = nix-command flakes
'';
trustedUsers = [ "root" "@wheel" ];
};
nixpkgs = {
config = {
allowUnfree = true;
};
overlays = [
(import ../../overlay)
];
};
}