configs/nix: switch to lix

This commit is contained in:
Aaron Bieber 2024-05-12 14:34:00 -06:00
parent f5f1dc7137
commit ed7e05d802
No known key found for this signature in database

View File

@ -1,21 +1,23 @@
{ pkgs, inputs, ... }: { pkgs, inputs, lib, ... }:
{ {
nix = { nix =
package = inputs.unstable.legacyPackages.${pkgs.system}.nixVersions.nix_2_21; let myPkgs = inputs.unstableSmall.legacyPackages.${pkgs.system};
gc = { in {
automatic = true; package = if lib.hasAttr "lix" myPkgs then myPkgs.lix else myPkgs.nixVersions.nix_2_21;
dates = "daily"; gc = {
options = "--delete-older-than 10d"; automatic = true;
}; dates = "daily";
options = "--delete-older-than 10d";
};
extraOptions = '' extraOptions = ''
experimental-features = nix-command flakes experimental-features = nix-command flakes
''; '';
settings.auto-optimise-store = true; settings.auto-optimise-store = true;
settings = { settings = {
sandbox = true; sandbox = true;
trusted-users = [ "@wheel" ]; trusted-users = [ "@wheel" ];
allowed-users = [ "root" "qbit" ]; allowed-users = [ "root" "qbit" ];
};
}; };
};
} }