Improve nix setup

This commit is contained in:
dolphinau 2025-08-27 18:11:12 +02:00
parent 6f85efcd26
commit 580f80b521
No known key found for this signature in database
6 changed files with 113 additions and 33 deletions

View file

@ -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