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

plik: init at 1.3.1 #103705

Merged
merged 3 commits into from Mar 4, 2021
Merged

plik: init at 1.3.1 #103705

merged 3 commits into from Mar 4, 2021

Conversation

freezeboy
Copy link
Contributor

Motivation for this change

Add package, module and test for plik

Currently, the web frontend is extracted from the release from upstream due to problems to
build it. I hope to fix this in a future update

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

Copy link
Member

@aanderse aanderse left a comment

Choose a reason for hiding this comment

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

Thanks for the module. I'll probably make use of it at some point 👍

I have left a few comments I hope you find helpful. If you have any questions or want any clarification just let me know. Happy to help in any way I can.

nixos/modules/misc/ids.nix Outdated Show resolved Hide resolved
nixos/modules/services/misc/plikd.nix Outdated Show resolved Hide resolved
nixos/modules/services/misc/plikd.nix Outdated Show resolved Hide resolved
nixos/modules/services/misc/plikd.nix Outdated Show resolved Hide resolved
nixos/modules/services/misc/plikd.nix Show resolved Hide resolved
nixos/modules/services/misc/plikd.nix Outdated Show resolved Hide resolved
};

config = mkIf cfg.enable {
systemd.services.plikd = {
Copy link
Member

Choose a reason for hiding this comment

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

After we merge this PR you might consider contributing this systemd unit to upstream. I'm sure they would benefit from your contribution.

nixos/modules/services/misc/plikd.nix Outdated Show resolved Hide resolved
nixos/tests/plikd.nix Show resolved Hide resolved
@freezeboy
Copy link
Contributor Author

Thank you for your comments, I tried to fix them, I am still not very sure how to address the "settings" key to have a flexible solution, but not too much hurdle for the admin also

@freezeboy
Copy link
Contributor Author

@aanderse, following the example on n8n module, I fixed this one too, and added the hardening config too

Copy link
Member

@aanderse aanderse left a comment

Choose a reason for hiding this comment

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

Module LGTM 👍 Unfortunately I don't generally review packages (and know almost nothing about go), so we should get someone else to review this.

@freezeboy freezeboy force-pushed the add-plik branch 2 times, most recently from fdf50ab to 5714411 Compare December 4, 2020 22:48
@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-ready-for-review/3032/401

@davidak
Copy link
Member

davidak commented Feb 21, 2021

@freezeboy please rebase.

The client and the servers are separated so that a simple user just gets
the necessary binary.

Currently the server frontend has a very old build, I could not build
this asset myself, so for the moment I simply extracted it from the
binary release of the project.

Once this build procedure will have been updated I will transition to a
full build
@freezeboy
Copy link
Contributor Author

Conflict resolved

@aanderse
Copy link
Member

aanderse commented Mar 4, 2021

@davidak are you familiar enough to merge this?

@davidak
Copy link
Member

davidak commented Mar 4, 2021

Result of nixpkgs-review pr 103705 run on x86_64-linux 1

1 package blacklisted:
  • tests.nixos-functions.nixos-test
2 packages built:
  • plik
  • plikd

@davidak
Copy link
Member

davidak commented Mar 4, 2021

Result of nixpkgs-review pr 103705 run on x86_64-linux 1

1 test built:
  • nixosTests.plikd

Copy link
Member

@davidak davidak left a comment

Choose a reason for hiding this comment

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

Changes look OK

Builds and works
Test runs successful

@davidak davidak merged commit 00b4741 into NixOS:master Mar 4, 2021
@freezeboy freezeboy deleted the add-plik branch March 5, 2021 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants