home.social

#dendriticpattern — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #dendriticpattern, aggregated by home.social.

fetched live
  1. @yisraeldov
    Now if we make the flake.nixosModules.somename : {arg1, arg2} = {}
    Then we can start composing too.

    In short: it's a very neat approach to modularize the options which scales better.

    Those who are using nix flake-parts and dendritic pattern, feel free to correct me or simplify this please.

    #nix #flakes #nixos #homemanager #nixhomemanager #flake-parts #dendritic #dendriticpattern

  2. @yisraeldov
    Personally in my config :
    github.com/vivekanandan-ks/ksv

    see here how xremap requires both nixos and homeManager options to work, so I keep both in same file. Now when I don't want xremap, I just need to remove this file from the scene, that's all . No need to go to separate places like nixos module folder and homemanager module folder to delete.

    #nix #flake #flake-parts #dendriticpattern

  3. @vivekanandanks @arichtman Thanks for posting this example. I have been meaning to refactor my flake for ages. The part looks like it is in flake.nix

    outputs = inputs @ { flake-parts, ... }:
    flake-parts.lib.mkFlake { inherit inputs; } (
    top @ { config, withSystem, moduleWithSystem, lib, ... }: {
    imports = [
    ...
    (inputs.import-tree ./flakepartsModules)
    ];


    and it is great to see this example.

  4. @arichtman
    Recently started using #dendritic pattern using #flake parts it's really helpful.

    Earlier: A new module file means I add it to a folder, then import them in my configuration.nix home.nix accordingly.

    Now: a module file added to a folder. That's it.

    And more awesome is that I can place both a nixos module and home module in the same file to have aspects together🔥 much more benefits

    It's worth doing things this way

    #nix #nixos #dendriticpattern #config #management #flakeparts

  5. Blog: Exploring the Dendritic Nix Pattern

    This is more of an assessment what I would have to do in order to migrate towards dendritic then an explanation of the pattern itself. But there are links to the relevant source material.

    britter.dev/blog/2026/05/11/ex

    #nix #nixos #dendriticpattern