configs/nix: switch to lix
This commit is contained in:
parent
f5f1dc7137
commit
ed7e05d802
@ -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" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user