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

config generators (generalized) #10

Closed
blaggacao opened this issue Apr 6, 2021 · 1 comment
Closed

config generators (generalized) #10

blaggacao opened this issue Apr 6, 2021 · 1 comment

Comments

@blaggacao
Copy link
Collaborator

blaggacao commented Apr 6, 2021

currently, nixosConfigurationsGenerator are implemented, however a typical flake based nixos or — generalized — nix controlled environment (machines, phones, iot, routers, etc), further generators are in order.

I suggest the canonical way to implement additional generators is through accessing self:

{
  outputs = inputs@{ self, nixpkgs, unstable, nur, utils, home-manager, neovim }:
    utils.lib.systemFlake { "..." = "..."; }
    // { 
        hmConfigurations = hmConfigigurationsGenerator self.nixosConfigurations;
        deploy.nodes = deployConfigurationsGenerator deploy self.nixosConfigurations;
    };
}

Or do we need an optional lib of generators to support well-known upstream projects? Since it's not called flake-utils-nixos, maybe there is a good argument to make about this.

/cc @Pacman99

@blaggacao blaggacao mentioned this issue Apr 7, 2021
@blaggacao
Copy link
Collaborator Author

Closed by #17

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

No branches or pull requests

1 participant