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