Skip to content

Commit

Permalink
fix: nixos: files missing deps on persistentStoragePath
Browse files Browse the repository at this point in the history
  • Loading branch information
nazarewk committed Oct 11, 2024
1 parent 481cf18 commit a43caee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nixos.nix
Original file line number Diff line number Diff line change
Expand Up @@ -493,11 +493,13 @@ in
let
targetFile = concatPaths [ persistentStoragePath filePath ];
mountPoint = escapeShellArg filePath;
persistentStorageUnit = "${escapeSystemdPath persistentStoragePath}.mount";
in
{
"persist-${escapeSystemdPath (escapeShellArg targetFile)}" = {
description = "Bind mount or link ${escapeShellArg targetFile} to ${mountPoint}";
wantedBy = [ "local-fs.target" ];
wantedBy = [ "local-fs.target" persistentStorageUnit ];
after = [ persistentStorageUnit ];
before = [ "local-fs.target" ];
path = [ pkgs.util-linux ];
unitConfig.DefaultDependencies = false;
Expand Down

0 comments on commit a43caee

Please sign in to comment.