From 99e69636fcb3a388da2814e060d54b63358d5234 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Wed, 15 Mar 2023 19:00:45 +0800 Subject: [PATCH] fetch-mutable-files: add initial systemd service --- modules/home-manager/fetch-mutable-files.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/modules/home-manager/fetch-mutable-files.nix b/modules/home-manager/fetch-mutable-files.nix index aa00cac..3d75414 100644 --- a/modules/home-manager/fetch-mutable-files.nix +++ b/modules/home-manager/fetch-mutable-files.nix @@ -63,6 +63,25 @@ in config = { 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" ]; }; }; }