modules/mutable-files: refactor and rename service

This commit is contained in:
Gabriel Arazas 2023-03-21 00:17:03 +08:00
parent 1cb206f77f
commit 51dde96620
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -93,7 +93,7 @@ in
}; };
config = lib.mkIf (cfg != { }) { config = lib.mkIf (cfg != { }) {
systemd.user.services.put-mutable-files = { systemd.user.services.fetch-mutable-files = {
Unit = { Unit = {
Description = "Fetch mutable home-manager-managed files"; Description = "Fetch mutable home-manager-managed files";
After = [ "default.target" "network-online.target" ]; After = [ "default.target" "network-online.target" ];
@ -132,13 +132,11 @@ in
''} ''}
'') '')
cfg; cfg;
script = pkgs.writeScriptBin "put-mutable-files" ''
#!${pkgs.runtimeShell}
${lib.concatStringsSep "\n" mutableFilesCmds}
'';
in in
"${script}/bin/put-mutable-files"; pkgs.writeScript "fetch-mutable-files" ''
#!${pkgs.runtimeShell}
${lib.concatStringsSep "\n" mutableFilesCmds}
'';
}; };
Install.WantedBy = [ "default.target" ]; Install.WantedBy = [ "default.target" ];