this post was submitted on 26 Feb 2025
7 points (100.0% liked)

Nix / NixOS

1982 readers
2 users here now

Main links

Videos

founded 2 years ago
MODERATORS
 

Howdy, I'm hoping someone can offer me some insight here because I've been stuck on this problem for an embarrassing amount of time.

I'm using flakes on a NixOS system. The basic outline of my flake.nix I lifted from this repo: https://github.com/notthebee/nix-config. I have one system I don't want to include home-manager, so I'm trying to make the home-manager configuration function (homeManagerCfg) in flakeHelpers.nix only be called if the extraModules list includes home-manager (stable or unstable or other).

I've tried everything I can think of so any help would be really appreciated here, thanks.

top 1 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 2 days ago

Posting your config or snippets of what you've tried will be the quickest way to get help.