Skip to content

Flake for declarative installation through nix - #212

Open
JJJHolscher wants to merge 2 commits into
graphlab-fr:developfrom
JJJHolscher:develop
Open

Flake for declarative installation through nix#212
JJJHolscher wants to merge 2 commits into
graphlab-fr:developfrom
JJJHolscher:develop

Conversation

@JJJHolscher

Copy link
Copy Markdown

By placing this flake.nix and flake.lock in the root of your repo, nix users can run it through

nix run github:graphlab-fr/cosma --override-input nixpkgs github:nixpkgs/nixos-26.05 -- config

or install it inside their flake.nix files.

Maintenance?
If your build process changes, the flake.nix might break. nix is good at pinning to older versions though, so users won't suddenly stand in the cold. Me or any LLM will be able to restore the flake to function.

Security?
flake.lock will gradually age. Nix users would be advised to override the nixpkgs input, which isn't an uncommon practice. But by default, if some big security gap is found in node then patches won't propagate to users. I think this is a non-issue given the nature of cosma, but I don't mind setting a bi-yearly alarm so I update the flake.lock here (all it'd involve is running nix flake update and committing the new flake.lock)

Of course, if you'd rather not have tools here that you don't use yourself then I understand that very well.

@infologie

Copy link
Copy Markdown
Contributor

@JJJHolscher Thank you for suggesting this. For this one, I am going to need @Myllaume to have a look. I will ping you here when we get to it.

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.

3 participants