Skip to content

Commit d56aaeb

Browse files
committed
refactor: use the new overlay fileSystems API
1 parent 941c595 commit d56aaeb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nixos-modules/microvm/mounts.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ lib.mkIf config.microvm.guest.enable {
5959
) {
6060
"/nix/store" = {
6161
device = hostStore.mountPoint;
62-
options = [ "bind" ];
62+
options = [ "ro" "bind" ];
6363
neededForBoot = true;
6464
};
6565
}
@@ -72,7 +72,7 @@ lib.mkIf config.microvm.guest.enable {
7272
"/nix/.ro-store" = {
7373
device = roStoreDisk;
7474
fsType = storeDiskType;
75-
options = [ "x-systemd.requires=systemd-modules-load.service" ];
75+
options = [ "ro" "x-systemd.requires=systemd-modules-load.service" ];
7676
neededForBoot = true;
7777
noCheck = true;
7878
};

0 commit comments

Comments
 (0)