Files
dotFiles/hosts/mba/nix.nix

27 lines
586 B
Nix
Raw Normal View History

2025-01-05 03:15:23 +05:30
# This file seems like generic nix config options could be moved to common in future
{
pkgs,
lib,
system,
...
}: {
nixpkgs.config.allowUnfree = true;
# Cross-compile GNU/Linux binaries, or even full GNU/Linux system images
2025-01-10 22:47:01 +05:30
nix.linux-builder.enable = true;
2025-01-05 03:15:23 +05:30
nix.settings.experimental-features = "nix-command flakes";
nixpkgs.hostPlatform = "${system}";
nix.gc = {
automatic = lib.mkDefault true;
2025-01-11 20:54:23 +05:30
options = lib.mkDefault "--delete-older-than 5d";
2025-01-05 03:15:23 +05:30
};
# https://github.com/NixOS/nix/issues/7273
2025-01-11 20:54:23 +05:30
nix.settings = {
2025-01-17 19:47:09 +05:30
auto-optimise-store = false;
2025-01-11 20:54:23 +05:30
};
2025-01-05 03:15:23 +05:30
}