Improve nix setup
This commit is contained in:
parent
6f85efcd26
commit
580f80b521
6 changed files with 113 additions and 33 deletions
25
README.md
25
README.md
|
|
@ -12,6 +12,31 @@ just init # Will init the database, and build the app image
|
|||
just run # Will run the lwn-sub-snoozer to update the database and the RSS file
|
||||
```
|
||||
|
||||
## Nix setup
|
||||
|
||||
For my server, I have the following setup:
|
||||
|
||||
```nix
|
||||
systemd.timers."rssify-update" = {
|
||||
wantedBy = [ "timers.target" ];
|
||||
timerConfig = {
|
||||
OnBootSec = "5m";
|
||||
OnUnitActiveSec = "12h";
|
||||
Unit = "rssify-update.service";
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services."rssify-update" = {
|
||||
script = ''
|
||||
${pkgs.rssify}/bin/echo "Hello World"
|
||||
'';
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
User = "root";
|
||||
};
|
||||
};
|
||||
```
|
||||
|
||||
## TODO
|
||||
|
||||
- [ ] Nix service with timer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue