Skip to content

Commit

Permalink
nixos/home: add home-manager in PATH to NixOS only
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Sep 30, 2023
1 parent fd1249e commit 596d41f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions home-manager/meta/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

# Add some Nix related packages
home.packages = with pkgs; [
# Necessary for NixOS, but causes conflicts in Home-Manager standalone
(lib.lowPrio home-manager)
nix-cleanup
nix-update
nix-whereis
Expand Down
4 changes: 4 additions & 0 deletions nixos/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ in
};

config = lib.mkIf cfg.enable {
# Home-Manager standalone already adds home-manager to PATH, so we
# are adding here only for NixOS
environment.systemPackages = with pkgs; [ home-manager ];

home-manager = {
useUserPackages = true;
users.${cfg.username} = {
Expand Down

0 comments on commit 596d41f

Please sign in to comment.