mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-08-12 10:30:44 +02:00
33 lines
726 B
Nix
33 lines
726 B
Nix
# some options are in ../../hostsModules/laptop/nixos/nixUtils.nix
|
|
{
|
|
pkgs-unstable,
|
|
inputs,
|
|
...
|
|
}: {
|
|
# Garbage collector of generations
|
|
nix.gc = {
|
|
automatic = true;
|
|
dates = "weekly";
|
|
options = "--delete-older-than 7d"; # every week delete generations older than a month
|
|
};
|
|
|
|
#manix is unhappy without this
|
|
nix.nixPath = [
|
|
"nixpkgs=${inputs.nixpkgs.outPath}"
|
|
"home-manager=${inputs.home-manager.outPath}"
|
|
];
|
|
|
|
#adds nixos experimental features:
|
|
nix.settings.experimental-features = ["nix-command" "flakes"];
|
|
|
|
environment.systemPackages = with pkgs-unstable; [
|
|
nixpkgs-review
|
|
nixfmt-tree
|
|
treefmt
|
|
nixd
|
|
deadnix
|
|
alejandra
|
|
vimPluginsUpdater # used for building plugins
|
|
];
|
|
}
|