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 = {
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 = {
# We need to wait for the NFS mount
RequiresMountsFor = "/nix/store /mnt/hut-nix-store";
RequiredBy = "remote-fs.target";
Before = "remote-fs.target";
};
}
];