standardize systemd services more

This commit is contained in:
Gerg-L 2024-06-22 20:27:00 -04:00
parent 82b2d4971e
commit c4f378b102
Signed by: gerg-l
SSH key fingerprint: SHA256:FPYDHIkvMocr4wdmZXpgpJjsb2Tw6rASs2ISPbOb0KI
3 changed files with 6 additions and 11 deletions

View file

@ -1,8 +1,8 @@
{
self',
lib,
pkgs,
config,
pkgs,
}:
{
options.local.bootConfig.disable = lib.mkEnableOption "";
@ -56,15 +56,12 @@
reloadIfChanged = false;
restartIfChanged = false;
stopIfChanged = false;
wantedBy = [ "default.target" ];
serviceConfig = {
ExecStart = "${lib.getExe' pkgs.efibootmgr "efibootmgr"} -t 0";
Type = "oneshot";
RemainAfterExit = true;
};
path = [ pkgs.efibootmgr ];
wantedBy = [ "default.target" ];
script = ''
efibootmgr -t 0
'';
};
};
}