Skip to content

Commit

Permalink
feat(nix): use the same <nixpkgs> for flake/legacy command
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamHsieh committed Dec 9, 2023
1 parent 70733e4 commit 7b8373b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions home.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ pkgs, config, lib, ... }:
{ inputs, pkgs, config, lib, ... }:
let
cfg = import ./config.nix;
config-path = "${config.home.homeDirectory}/${cfg.repo-path}/config";
Expand Down Expand Up @@ -34,8 +34,8 @@ in
gcc
];
sessionVariables = {
COMMA_NIXPKGS_FLAKE = "nixpkgs/${config.home.stateVersion}";
FZF_COMPLETION_TRIGGER = "~~";
NIX_PATH = "nixpkgs=${inputs.nixpkgs}";
};
};

Expand All @@ -57,6 +57,7 @@ in

nix = {
package = pkgs.nixUnstable;
registry.nixpkgs.flake = inputs.nixpkgs;
settings = {
experimental-features = [ "nix-command" "flakes" ];
warn-dirty = false;
Expand Down

0 comments on commit 7b8373b

Please sign in to comment.