nix-config/modules/common/profiles/default.nix
Bruno BELANYI d181f3a719 common: profiles: forward profiles to home-manager
We can only do this now that every profile has been migrated, otherwise
we would get errors about undeclared modules... It's not perfect, but
it's good enough.
2025-07-07 15:08:04 +00:00

25 lines
513 B
Nix

# Configuration that spans across system and home, or are almagations of modules
{ config, lib, _class, ... }:
{
imports = [
./bluetooth
./devices
./gtk
./laptop
./wm
./x
];
config = lib.mkMerge [
# Transparently enable home-manager profiles as well
(lib.optionalAttrs (_class != "homeManager") {
home-manager.users.${config.my.user.name} = {
config = {
my = {
inherit (config.my) profiles;
};
};
};
})
];
}