Skip to content

Commit

Permalink
home-manager/meta: add NIX_PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Jun 2, 2024
1 parent 1eab496 commit 4d487c3
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions home-manager/meta/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, lib, pkgs, osConfig, ... }:
{ config, lib, pkgs, flake, osConfig, ... }:

let
cfg = config.home-manager.meta;
Expand All @@ -22,11 +22,14 @@ in
};

config = lib.mkIf cfg.enable {
# Add some Nix related packages
home.packages = with pkgs; [
nix-cleanup
nix-whereis
];
home = {
# Add some Nix related packages
packages = with pkgs; [
nix-cleanup
nix-whereis
];
sessionVariables.NIX_PATH = "nixpkgs=${flake.inputs.nixpkgs}";
};

# To make cachix work you need add the current user as a trusted-user on Nix
# sudo echo "trusted-users = $(whoami)" >> /etc/nix/nix.conf
Expand Down

0 comments on commit 4d487c3

Please sign in to comment.