The idea (for now) is to just import the modules you want to use. For example, to use mpv you can just
imports = [modules/home-manager/gui/applications/mpv];
Maybe this is a bit too verbose, but I'm looking into haumea for it. I don't want to have cfgs everywhere.
hosts/<hostname>/default.nix
{...}: {
# Parameters defining base system. Available to all modules
params = {
system = "x86_64-linux";
timeZone = "Asia/Baku";
hostName = "Hostname";
userName = "user";
fullName = "Userly user";
# Enables gui
desktop = true;
};
# Imported by NixOS
module = {...}: {};
# Imported by home-manager
homeModule = {...}: {
imports = [
../common/desktop.nix
../../modules/home-manager/gui/applications/mpv
];
# Set some configs
config.host.i3 = {
monitors = ["HDMI-A-0" "eDP"];
};
};
}