nix-config/modules/nix/default.nix
2025-02-28 19:32:44 +01:00

30 lines
595 B
Nix

{
pkgs,
inputs,
...
}: {
nix = {
nixPath = ["nixpkgs=${inputs.nixpkgs}"];
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 14d";
};
settings = {
experimental-features = ["nix-command" "flakes"];
auto-optimise-store = true;
};
};
nixpkgs = {
overlays = [
inputs.nur.overlays.default
inputs.niri.overlays.niri
inputs.nix-alien.overlays.default
];
config = {
allowUnfree = true;
};
};
environment.systemPackages = [inputs.alejandra.defaultPackage.${pkgs.system}];
}