2023-12-01 21:06:32 -08:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
systemd.services.Sovran_SystemsOS_Light_Updater = {
|
|
|
|
|
|
|
|
script = ''
|
2023-12-01 21:09:58 -08:00
|
|
|
|
2023-12-01 21:13:09 -08:00
|
|
|
flatpak update
|
|
|
|
|
|
|
|
pushd /etc/nixos
|
|
|
|
|
|
|
|
nix flake update
|
|
|
|
|
|
|
|
nixos-rebuild switch
|
|
|
|
|
|
|
|
popd
|
2023-12-01 21:06:32 -08:00
|
|
|
|
|
|
|
'';
|
|
|
|
|
|
|
|
unitConfig = {
|
|
|
|
Type = "simple";
|
|
|
|
};
|
|
|
|
|
|
|
|
serviceConfig = {
|
|
|
|
RemainAfterExit = "no";
|
|
|
|
Type = "oneshot";
|
|
|
|
};
|
|
|
|
|
|
|
|
wantedBy = [ "multi-user.target" ];
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|