fetch-mutable-files: add initial systemd service

This commit is contained in:
Gabriel Arazas 2023-03-15 19:00:45 +08:00
parent 02d34c03a0
commit 99e69636fc
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -63,6 +63,25 @@ in
config = { config = {
systemd.user.services.fetch-mutable-files = { systemd.user.services.fetch-mutable-files = {
Unit = {
Description = "Fetch mutable files from home-manager";
After = [ "default.target" "network-online.target" ];
Wants = [ "network-online.target" ];
};
Service = {
# We'll assume this service will download lots of files. We want the
# temporary files to only last along with the service.
PrivateUsers = true;
PrivateTmp = true;
Type = "oneshot";
RemainAfterExit = true;
# TODO: Complete this
ExecStart = "";
};
Install.WantedBy = [ "default.target" ];
}; };
}; };
} }