alecandido / nix-config

Personal Nix configurations
0 stars 0 forks source link

Toggles to home manager modules #17

Open alecandido opened 8 months ago

alecandido commented 8 months ago

Instead of using a list of toggles, like: https://github.com/alecandido/nixpkgs/blob/b4d147a5d43712a8295c718bff96980eaaaedfee/systems/nixos/default.nix#L64 it would be more natural to have attributes, like:

{
  amenities = true;
  gnome = true;
  neovim = {
    lsp = true;
  };
  shell = "nu";
  thunderbird = true;
}

But even better, it would be to have an home-manager module where to write some configurations, and then use this high-level configs to enable a series of other configs (like right now it is happening for toggles). https://nixos.org/manual/nixos/stable/index.html#sec-writing-modules

Using home-manager it should on every platform (including darwin), and the configurations could be added as an extra module in systems/.

alecandido commented 6 months ago