Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Home Manager template #39

Merged
merged 9 commits into from
Jan 9, 2024
Merged

Conversation

erikreinert
Copy link
Member

@erikreinert erikreinert commented Jan 9, 2024

Changes

  • adds new home-manager template for non-NixOS and nix-darwin systems.

@erikreinert erikreinert self-assigned this Jan 9, 2024
@erikreinert erikreinert merged commit 50405da into main Jan 9, 2024
25 checks passed
@erikreinert erikreinert deleted the 38-generic-linux-template branch January 9, 2024 22:15
@erikreinert erikreinert mentioned this pull request Jan 9, 2024
@spikespaz
Copy link

spikespaz commented Jan 9, 2024

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
Copy link
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants