1
0
Fork 0
puter/common/nix.nix
2025-05-11 22:49:04 +02:00

28 lines
548 B
Nix

{
config,
inputs,
lib,
...
}:
{
nix = {
registry = lib.mapAttrs (_: value: { flake = value; }) inputs;
nixPath = lib.mapAttrsToList (key: _: "${key}=flake:${key}") config.nix.registry;
optimise.automatic = true;
settings = {
trusted-users = [ "root" ] ++ config.users.normalUsers;
experimental-features = [
"nix-command"
"flakes"
];
auto-optimise-store = true;
flake-registry = "";
use-xdg-base-directories = true;
};
};
nixpkgs.config.allowUnfree = true;
}