2024-02-04 20:51:11 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
inputs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
nix = {
|
|
|
|
registry = lib.mapAttrs (_: value: {flake = value;}) inputs;
|
|
|
|
|
|
|
|
nixPath = lib.mapAttrsToList (key: _: "${key}=flake:${key}") config.nix.registry;
|
|
|
|
|
2025-03-01 21:21:00 +00:00
|
|
|
optimise.automatic = true;
|
|
|
|
|
2024-02-04 20:51:11 +00:00
|
|
|
settings = {
|
2025-03-01 21:21:00 +00:00
|
|
|
trusted-users = ["root"] ++ config.users.normalUsers;
|
|
|
|
experimental-features = [
|
|
|
|
"nix-command"
|
|
|
|
"flakes"
|
|
|
|
];
|
2024-02-04 20:51:11 +00:00
|
|
|
auto-optimise-store = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
hardware.enableAllFirmware = true;
|
|
|
|
}
|