Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

pkgs in home-manager profiles #309

Closed
Radvendii opened this issue Jun 7, 2021 · 2 comments
Closed

pkgs in home-manager profiles #309

Radvendii opened this issue Jun 7, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@Radvendii
Copy link

Would your feature fix an existing issue?

not that i'm aware of

Describe the solution you'd like

just like in system profiles, i want to be able to take in pkgs (and possibly other things like config in home-manager profiles. .

Describe alternatives you've considered

I can't think of another easy way to get things where they need to go.

Additional context

There are some attributes that require packages as values, or commands that require something like ${pkgs.feh}/bin/feh to work

@Radvendii Radvendii added the enhancement New feature or request label Jun 7, 2021
@Pacman99
Copy link
Member

Pacman99 commented Jun 8, 2021

Home-manager profiles are just like any other module, you can get pkgs as an argument.

{ config, pkgs, ... }:
{
  environment.systemPackages = [ pkgs.feh ];
}

If that doesn't work, then there might be a bug or perhaps I'm misunderstanding the question.

@Radvendii
Copy link
Author

Oh, you're totally right. I tried it and it seemed to break, but now it's working. I guess I did something else wrong.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants