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

Nix package #714

Open
gBasil opened this issue Jul 27, 2023 · 2 comments
Open

Nix package #714

gBasil opened this issue Jul 27, 2023 · 2 comments

Comments

@gBasil
Copy link

gBasil commented Jul 27, 2023

I was wondering if Padloc could be packaged for Nix.

@MaKleSoft
Copy link
Collaborator

Hi there! Can you please explain what Nix is and why it would be a good idea for Padloc to be packaged for it? Also, please outline the specific steps that would be required to make this happen.

@gBasil
Copy link
Author

gBasil commented Aug 2, 2023

Hello! Nix is a cross-platform (Linux and macOS) package manager. It has a Linux distribution called NixOS that is built upon it. Nix has a declarative programming language (also called Nix), with which the packages are defined. Also, NixOS is configured in the same language, which makes it very easy to declaratively configure the system in one place.

It admittedly has a steep learning curve and the documentation isn't the best, and I'm personally not the most confident in my abilities with it just yet, so consulting with community members would probably be best.

It would be nice to have it officially packaged on Nix as well as having a systemd service defined, as it would allow for Padloc to be run just by including the following bit of code in a .nix file in the system configuration:

services.padloc.enable = true;

# Or if the services are split (client & server), it could look like this:
services.padloc-server.enable = true;
services.padloc-server.enable = true;

A good introductory resource is this blog post: https://www.slice.zone/blog/nix-in-practice
Potentially also a good resource on Nix, focused on packaging: https://unix.stackexchange.com/a/717169

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