Skip to content

Commit

Permalink
flake.nix: move PATH workaound from home-manager/minimal
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Oct 6, 2023
1 parent 6020030 commit 155346a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
6 changes: 6 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,12 @@
"username is set to 'nobody', you may have forgot `--impure` flag!"
user)
else user;
extraModules = [
({ config, ... }: {
# Not sure why this variable is not filling up automatically
home.sessionPath = [ "${config.home.homeDirectory}/.nix-profile/bin" ];
})
];
}).homeConfigurations.devShell;
in
{
Expand Down
9 changes: 3 additions & 6 deletions home-manager/minimal.nix
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
{ config, lib, ... }:
{ lib, ... }:

{
imports = [ ./default.nix ];

home = {
# Not sure why this variable is not filling up automatically
sessionPath = [ "${config.home.homeDirectory}/.nix-profile/bin" ];
stateVersion = "23.11";
};
# Need to be set since meta module is disabled in this config
home.stateVersion = "23.11";

# Disable some modules
home-manager = {
Expand Down

0 comments on commit 155346a

Please sign in to comment.