reorganizing files
This commit is contained in:
parent
c51bc454bc
commit
6c99ced7fe
10 changed files with 33 additions and 31 deletions
|
@ -1,26 +0,0 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
|
||||
systemd.timers."update-flatpak" = {
|
||||
wantedBy = [ "timers.target" ];
|
||||
timerConfig = {
|
||||
OnBootSec = "1m";
|
||||
OnCalendar = "daily";
|
||||
Unit = "update-flatpak.service";
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services."update-flatpak" = {
|
||||
script = ''
|
||||
set -eu
|
||||
${pkgs.flatpak}/bin/flatpak update --noninteractive --assumeyes
|
||||
'';
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
User = "root";
|
||||
};
|
||||
wantedBy = [ "multi-user.target" ]; # Ensure the service starts after rebuild
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue