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

How to integrate Nixus into a flake.nix #54

Open
infinisil opened this issue Aug 17, 2023 · 3 comments
Open

How to integrate Nixus into a flake.nix #54

infinisil opened this issue Aug 17, 2023 · 3 comments

Comments

@infinisil
Copy link
Owner

{
  inputs.nixus = {
    url = "github:infinisil/nixus";
    flake = false;
  };
  inputs.nixpkgs.url = "github:NixOS/nixpkgs";
  inputs.flake-utils.url = "github:numtide/flake-utils";

  outputs = { nixus, nixpkgs, flake-utils, self, ... }:
    flake-utils.lib.eachDefaultSystem (system: {

      packages.deployer =
        import nixus {
          nixpkgs = nixpkgs;
          deploySystem = system;
        } {
          
        };

      apps.default =
        flake-utils.lib.mkApp {
          drv = self.packages.${system}.deployer;
          exePath = "";
        };
    });
}
@busti
Copy link

busti commented Mar 27, 2024

Is this an explanation or is it a note?

Edit: Seems to just work (I haven't ported my stuff completely just yet, but at least nix flake check works)

@infinisil
Copy link
Owner Author

I was asked about this in the past, but I didn't have time to document this more properly, so I just dumped it in an issue :)

@busti
Copy link

busti commented Mar 28, 2024

Thanks for the clarification. I can confirm that it works. I have now migrated my setup to it and deployed it for the first time. Everything worked out smoothly so far.

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

2 participants