nix-config/modules/common/profiles/default.nix

26 lines
504 B
Nix
Raw Normal View History

# Configuration that spans accross system and home, or are almagations of modules
{ config, lib, type, ... }:
{
imports = [
2024-01-03 17:51:34 +01:00
./bluetooth
2024-01-03 18:03:09 +01:00
./devices
2024-01-03 18:03:47 +01:00
./gtk
2024-01-03 18:05:16 +01:00
./laptop
2024-01-03 18:05:37 +01:00
./wm
2024-01-03 18:05:54 +01:00
./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;
};
};
};
})
];
}