mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-04-19 06:19:12 +00:00
modules/mutable-files: refactor and rename service
This commit is contained in:
parent
1cb206f77f
commit
51dde96620
@ -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" ];
|
||||||
|
Loading…
Reference in New Issue
Block a user