From df4da6b3f960ad724c0ff46948d557db7d88fbe4 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Tue, 6 Aug 2024 11:41:39 -0500 Subject: [PATCH] leave this comments in case I run into unexpected nix-shell outputs --- modules/nix.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/nix.nix b/modules/nix.nix index f8aec89..df1582f 100644 --- a/modules/nix.nix +++ b/modules/nix.nix @@ -29,9 +29,14 @@ in # use the same nixpkgs for nix run "nixpkgs#hello" style commands registry.nixpkgs.flake = inputs.nixpkgs; - }; + # https://dataswamp.org/~solene/2022-07-20-nixos-flakes-command-sync-with-system.html#_nix-shell_vs_nix_shell + # use the same nixpkgs for nix-shell -p hello style commands + # I don't know that this is necesary... + # nix.nixPath = [ "nixpkgs=/etc/channels/nixpkgs" ]; + # environment.etc."channels/nixpkgs".source = inputs.nixpkgs.outPath; + environment.systemPackages = [ pkgs.nixd pkgs.nixfmt-rfc-style