26 lines
381 B
Nix
26 lines
381 B
Nix
|
{ config, pkgs, lib, ... }:
|
||
|
|
||
|
{
|
||
|
|
||
|
systemd.services.Sovran_SystemsOS_Light_Updater = {
|
||
|
|
||
|
script = ''
|
||
|
|
||
|
cd /etc/nixos && flatpak update && nix flake update && nixos-rebuild switch
|
||
|
|
||
|
'';
|
||
|
|
||
|
unitConfig = {
|
||
|
Type = "simple";
|
||
|
};
|
||
|
|
||
|
serviceConfig = {
|
||
|
RemainAfterExit = "no";
|
||
|
Type = "oneshot";
|
||
|
};
|
||
|
|
||
|
wantedBy = [ "multi-user.target" ];
|
||
|
|
||
|
};
|
||
|
|
||
|
}
|