From e33df45bf6406d7f3b114caaf6690d4817c3f076 Mon Sep 17 00:00:00 2001 From: reo101 Date: Sun, 15 Sep 2024 17:08:20 +0300 Subject: [PATCH] feat(limonka)!: remove `nix.registry` and `nix.nixPath`, not working --- hosts/nix-darwin/limonka/configuration.nix | 23 +--------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/hosts/nix-darwin/limonka/configuration.nix b/hosts/nix-darwin/limonka/configuration.nix index 88d490b..8bafc86 100644 --- a/hosts/nix-darwin/limonka/configuration.nix +++ b/hosts/nix-darwin/limonka/configuration.nix @@ -8,33 +8,12 @@ # Auto upgrade nix package and the daemon service. services.nix-daemon.enable = true; - nix = let - flakeInputs = lib.filterAttrs (lib.const (lib.isType "flake")) inputs; - in { + nix = { # Ensure we can work with flakes # TODO: add to `README.md` # NOTE: run `sudo -i nix-env --uninstall nix` to uninstall the global `nix` package = pkgs.lix-monitored; - # This will add each flake input as a registry - # To make nix3 commands consistent with your flake - registry = lib.mapAttrs (_: value: { flake = value; }) flakeInputs; - - # This will additionally add your inputs to the system's legacy channels - # Making legacy nix commands consistent as well, awesome! - nixPath = lib.mapAttrsToList (key: value: "${key}=flake:${key}") flakeInputs; - - # extraOptions = '' - # # Enable flakes and new 'nix' command - # experimental-features = nix-command flakes - # # Allow building multiple derivations in parallel - # max-jobs = auto - # # Deduplicate and optimize nix store - # auto-optimise-store = true - # # Keep outputs and derivations - # keep-outputs = true - # keep-derivations = true - # ''; settings = { # Enable flakes and new 'nix' command