vm shenanigans

This commit is contained in:
Kopatz
2024-07-05 16:33:20 +02:00
parent ad716578f5
commit f26bc8bbca
5 changed files with 21 additions and 23 deletions

View File

@@ -4,10 +4,15 @@ let cfg = config.custom.nix.settings;
in {
options.custom.nix.settings = {
enable = mkEnableOption "Enables various nix settings";
optimise = mkOption {
type = with types; bool;
default = true;
description = "Optimise nix store";
};
};
config = mkIf cfg.enable {
nix.optimise.automatic = true;
nix.optimise.automatic = cfg.optimise;
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.registry.nixpkgs.flake = pkgsVersion;
nix.gc = {