{ inputs, ... }: let username = "john"; in { # https://github.com/Doc-Steve/dendritic-design-with-flake-parts/wiki/Dendritic_Aspects#multi-context-aspect flake.modules.nixos."${username}" = { pkgs, ... }: { home-manager.users."${username}" = { imports = [ inputs.self.homeModules."${username}" ]; }; users.users."${username}" = { isNormalUser = true; shell = pkgs.zsh; openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIAUa4dcg1TWc4pW++uodyhX4eOqrX/QYIxFWtEP7HFJ john@john-pc-ubuntu" ]; }; programs.zsh.enable = true; }; flake.homeModules."${username}" = { home.username = "${username}"; home.homeDirectory = "/home/${username}"; home.stateVersion = "25.11"; xdg.enable = true; programs.git.settings.user.name = "John Lancaster"; programs.git.settings.user.email = "32917998+jsl12@users.noreply.github.com"; imports = with inputs.self.homeModules; [ base docker # resticprofile ]; }; # This is the base homeConfiguration for the john user that will be used if no other flake.homeConfigurations."${username}" = inputs.home-manager.lib.homeManagerConfiguration { pkgs = import inputs.nixpkgs { system = "x86_64-linux"; }; modules = [ inputs.self.homeModules."${username}" # Include another inline module to set the options created through the jsl-home modules { docker.enable = false; ssh.matchSets = { certs = true; homelab = true; }; } ]; }; }