-
-
Notifications
You must be signed in to change notification settings - Fork 16.6k
nixos/urlwatch: init module #423275
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
base: master
Are you sure you want to change the base?
nixos/urlwatch: init module #423275
Conversation
1fed594
to
334f8bb
Compare
334f8bb
to
f4b43b8
Compare
f4b43b8
to
58e5424
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple of nitpicks. The rest looks great
0501848
to
6517cce
Compare
691108e
to
8a42680
Compare
Added systemd service for urlwatch.
8a42680
to
ab86d30
Compare
urlsFile = lib.pipe cfg.jobs [ | ||
(map (format.generate "jobfile")) | ||
(map builtins.readFile) | ||
(builtins.concatStringsSep "---\n") | ||
(pkgs.writeText "urls.yaml") | ||
]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
urlsFile = lib.pipe cfg.jobs [ | |
(map (format.generate "jobfile")) | |
(map builtins.readFile) | |
(builtins.concatStringsSep "---\n") | |
(pkgs.writeText "urls.yaml") | |
]; | |
urlsFile = lib.concatMapStringsSep "---\n" (x: ) .... |
i think concatMapStringsSep is more what you're looking for ;p
wants = [ "network-online.target" ]; | ||
wantedBy = [ "multi-user.target" ]; | ||
path = [ cfg.package ]; | ||
serviceConfig = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be nice to see some more hardening options, check out systemd-hardening-helper
Co-authored-by: jack rosenberg <56937175+jackrosenberg@users.noreply.github.com>
Urlwatch is used to monitor websites for changes.
This pr adds a module to create a system service continuously polling changes.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.