ALT-F4-LLC / kickstart.nix

Kickstart your Nix environment.
Apache License 2.0
166 stars 35 forks source link

Implement Home Manager template #39

Closed erikreinert closed 8 months ago

erikreinert commented 8 months ago

Changes

spikespaz commented 8 months ago

Aside from new Nix users thinking they need flake-parts after reading this code, LGTM.

{
    inputs = {
        systems.url = "github:nix-systems/default";
        # ...
    };

    outputs = inputs@{systems, nixpkgs, ...}: let
        inherit (nixpkgs) lib;
        eachSystem = lib.genAttrs (import systems);
        pkgsFor = eachSystem (system:
            import nixpkgs {
                localSystem.system = system;
            }
        );
    in {
        packages = eachSystem (system: let pkgs = pkgsFor.${system}; in {
            # ...
        });
        # ...
    }
}
erikreinert commented 8 months ago

I think it would be worth while to add in the README somewhere about that we use flake-parts as a guide and is not always required. This would be helpful to guide people away if they need to which I'm down to promote.