use nix.settings

This commit is contained in:
Daylin Morgan 2024-08-09 14:03:04 -05:00
parent d93ac9ba6a
commit afac7e637b
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -3,7 +3,7 @@
pkgs,
lib,
enabled,
flake,
self,
...
}:
let
@ -15,10 +15,10 @@ in
nixpkgs.config.allowUnfree = true;
# nix.package = pkgs.nixVersions.latest;
nix = {
extraOptions = ''
experimental-features = nix-command flakes pipe-operator
use-xdg-base-directories = true
'';
settings = {
experimental-features = [ "nix-command" "flakes" "pipe-operator"];
use-xdg-base-directories = true;
};
optimise.automatic = true;
gc = {
@ -42,7 +42,7 @@ in
pkgs.nixfmt-rfc-style
pkgs.nix-output-monitor
(flake.pkg "self")
self.packages.${pkgs.system}.default
];
programs.nix-index-database.comma = enabled;