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

Add Nix Flake #130

Open
wants to merge 30 commits into
base: main
Choose a base branch
from
Open

Add Nix Flake #130

wants to merge 30 commits into from

Conversation

justDeeevin
Copy link

@justDeeevin justDeeevin commented Nov 10, 2024

Fixes #121. In addition to packaging the app, this flake provides a home-manager module with which users can configure Posting in Nix.

@justDeeevin justDeeevin marked this pull request as draft November 11, 2024 19:24
@justDeeevin
Copy link
Author

Draft because home-manager module is WIP. The package itself builds and runs.

@noahfraiture
Copy link

Hey, I'm starting nix. Do you have an example of how you install posting in your nix configuration with this ? Do you simply have to add this repo in inputs of a flake ?

@justDeeevin
Copy link
Author

  1. add the repo to inputs
  2. add specialArgs = {inherit inputs;} as an attribute in the nixosSystem function call
  3. add inputs argument to your config module
  4. add inputs.posting.packages.<system>.default to your systemPackages (where <system> is your system, probably x86_64-linux)

See this reddit thread, or look at my nixos flake for more.

I've learned that the main problem I was having was that overlays
weren't working right in my nixOS config. I don't know what is causing
this, but this overlay solution _should_ be functional.
@justDeeevin justDeeevin marked this pull request as ready for review November 13, 2024 00:26
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.

Nix Support
2 participants