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.
This commit is contained in:
parent
2a6696bafc
commit
d181f3a719
1 changed files with 14 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
|||
# Configuration that spans across system and home, or are almagations of modules
|
||||
{ ... }:
|
||||
{ config, lib, _class, ... }:
|
||||
{
|
||||
imports = [
|
||||
./bluetooth
|
||||
|
|
@ -9,4 +9,17 @@
|
|||
./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;
|
||||
};
|
||||
};
|
||||
};
|
||||
})
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue