xin/configs/nix.nix

24 lines
613 B
Nix
Raw Permalink Normal View History

2024-05-12 14:34:00 -06:00
{ pkgs, inputs, lib, ... }:
{
2024-05-12 14:34:00 -06:00
nix =
let myPkgs = inputs.unstableSmall.legacyPackages.${pkgs.system};
in {
package = if lib.hasAttr "lix" myPkgs then myPkgs.lix else myPkgs.nixVersions.nix_2_21;
2024-05-24 13:02:46 -06:00
gc = lib.mkDefault {
2024-05-12 14:34:00 -06:00
automatic = true;
dates = "daily";
options = "--delete-older-than 10d";
};
2022-08-25 12:21:35 -06:00
2024-05-12 14:34:00 -06:00
extraOptions = ''
experimental-features = nix-command flakes
'';
settings.auto-optimise-store = true;
settings = {
sandbox = true;
trusted-users = [ "@wheel" ];
allowed-users = [ "root" "qbit" ];
};
};
}