From afac7e637b71541e101dc9c9393bf67baf83d53d Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Fri, 9 Aug 2024 14:03:04 -0500 Subject: [PATCH] use nix.settings --- modules/nix.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/nix.nix b/modules/nix.nix index e5168c7..a4a453c 100644 --- a/modules/nix.nix +++ b/modules/nix.nix @@ -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;