Use NixOS attributes for the install section

This commit is contained in:
Rodrigo Arias 2023-09-18 19:27:14 +02:00
parent 3bb0b550aa
commit e065cde376

View File

@ -54,11 +54,15 @@
mountConfig = { mountConfig = {
LazyUnmount = true; LazyUnmount = true;
}; };
# Run the unit after remote-fs-pre.target but before the remote-fs.target
after = [ "remote-fs-pre.target"];
before = [ "umount.target" "remote-fs.target" ];
# Install by using wantedBy over remote-fs.target
wantedBy = [ "remote-fs.target" ];
unitConfig = { unitConfig = {
# We need to wait for the NFS mount # We need to wait for the NFS mount
RequiresMountsFor = "/nix/store /mnt/hut-nix-store"; RequiresMountsFor = "/nix/store /mnt/hut-nix-store";
RequiredBy = "remote-fs.target";
Before = "remote-fs.target";
}; };
} }
]; ];