We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 941c595 commit d56aaebCopy full SHA for d56aaeb
nixos-modules/microvm/mounts.nix
@@ -59,7 +59,7 @@ lib.mkIf config.microvm.guest.enable {
59
) {
60
"/nix/store" = {
61
device = hostStore.mountPoint;
62
- options = [ "bind" ];
+ options = [ "ro" "bind" ];
63
neededForBoot = true;
64
};
65
}
@@ -72,7 +72,7 @@ lib.mkIf config.microvm.guest.enable {
72
"/nix/.ro-store" = {
73
device = roStoreDisk;
74
fsType = storeDiskType;
75
- options = [ "x-systemd.requires=systemd-modules-load.service" ];
+ options = [ "ro" "x-systemd.requires=systemd-modules-load.service" ];
76
77
noCheck = true;
78
0 commit comments