I’m experimenting with an idea I had about specialisations and making my home-manager configuration more lego-like without using more modules.
I am configuring 4 “profiles” that I can flip between. 2 have gui dependancies (theming and such). The other 2 differ by git credentials, and obviously the other 4 are mixtures of the previous 4
I was planning on setting up the below code.
The // operator is not working as it should.
When I build the configurations in guiThings are not built.
Unsure why.
{ config, lib, pkgs, ... }:
let
guiThings = { configs with gui stuff and theming };
in
{
normal.config = "here";
default.configs.and = "things";
home.specialisation = {
gui-default = guiThings // {
gui.specific.configs = "here";
};
gui-work = guiThings // {
basically = [ work ] + gui;
};
work = {
work.related.configs = "here";
};
};
}