Added a systemd unit to update the Sovran Book Pro

This commit is contained in:
naturallaw77 2023-12-01 21:06:32 -08:00
parent aa48ffef1f
commit 01fa00f5e7
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,26 @@
{ 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" ];
};
}

View File

@ -5,6 +5,7 @@
imports = [
./Sovran_SystemsOS_Light_File_Fixes_And_New_Services.nix
./Sovran_SystemsOS_Light_Updater_Script.nix
];
}