cryodev/modules/nixos/common/nix.nix
2026-03-06 08:31:13 +01:00

19 lines
308 B
Nix

{
config,
lib,
...
}:
let
inherit (lib) mkDefault;
in
{
nix = {
# use flakes
channel.enable = mkDefault false;
# De-duplicate store paths using hardlinks except in containers
# where the store is host-managed.
optimise.automatic = mkDefault (!config.boot.isContainer);
};
}