aboutsummaryrefslogtreecommitdiffstats
path: root/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/default.nix b/default.nix
index 8b03123..ad2610e 100644
--- a/default.nix
+++ b/default.nix
@@ -12,6 +12,10 @@ let
(modulesPath + "/profiles/perlless.nix")
];
+ # Activate and switch root from the initrd with a single program,
+ # instead of bash running prepare-root and the activation script.
+ system.nixos-init.enable = true;
+
system.stateVersion = lib.trivial.release;
boot.kernelPackages = kernelPackages;
@@ -32,7 +36,7 @@ let
fileSystems."/nix/store" = {
device = "/dev/vda";
fsType = "erofs";
- options = [ "ro" ];
+ options = [ "ro" "nodev" "nosuid" ];
};
fileSystems."/xchg" = {
device = "/dev/vdb";