Skip to content

Nix support - #41

Draft
AamodJ wants to merge 9 commits into
BarbUk:masterfrom
AamodJ:nix-support
Draft

Nix support#41
AamodJ wants to merge 9 commits into
BarbUk:masterfrom
AamodJ:nix-support

Conversation

@AamodJ

@AamodJ AamodJ commented Jul 31, 2026

Copy link
Copy Markdown

Hello!

This PR is to add nix support to this project with a simple flake providing some home manager module options. I suggest keeping a separate branch to work on nix support. And I would like to maintain this branch for the project.

By default, setting programs.snippy.enable = true; will install both wayland and x11 dependencies (since we don't know the user's environment), and we provide options to enable wayland or x11 exclusively (in effect this will not install dependencies for the other).

Next steps:

  • Add CI to continually update flake.lock to point it to the latest commit
  • Add nixfmt in CI pipeline and pre-commit hooks to ensure code consistency
  • Install LICENSE.md. Currently only the script is installed so the license is not distributed. I will add this in a future commit

Suggestions are welcome.

@AamodJ
AamodJ marked this pull request as draft July 31, 2026 21:18
Comment thread shell.nix
Comment on lines +5 to +14
mkShell {
packages = with nixpkgs; [
shellcheck
uv
python3
rustup
zizmor
rumdl
typos
prek

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those are all dev deps, used only with pre-commit or prek to contribute to the project

@BarbUk

BarbUk commented Aug 2, 2026

Copy link
Copy Markdown
Owner

Thanks @AamodJ !

Suggestions are welcome.

As I don't use nix, I'm open to changes that can help with integrating snippy with nix.

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