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 is only done for `type == "nixos"` for now, as I don't have any Darwin configurations...
25 lines
504 B
Nix
25 lines
504 B
Nix
# Configuration that spans accross system and home, or are almagations of modules
|
|
{ config, lib, type, ... }:
|
|
{
|
|
imports = [
|
|
./bluetooth
|
|
./devices
|
|
./gtk
|
|
./laptop
|
|
./wm
|
|
./x
|
|
];
|
|
|
|
config = lib.mkMerge [
|
|
# Transparently enable home-manager profiles as well
|
|
(lib.optionalAttrs (type == "nixos") {
|
|
home-manager.users.${config.my.user.name} = {
|
|
config = {
|
|
my = {
|
|
inherit (config.my) profiles;
|
|
};
|
|
};
|
|
};
|
|
})
|
|
];
|
|
}
|