aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--default.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/default.nix b/default.nix
index d562380..8b03123 100644
--- a/default.nix
+++ b/default.nix
@@ -88,6 +88,13 @@ let
];
services.journald.storage = "volatile"; # don't flush to /var/log
security.pam.services.login.lastlog.enable = lib.mkForce false;
+
+ # Only login needs a wrapper (unix_chkpwd), so create them in parallel
+ # to the rest of the boot instead of holding up sysinit.target.
+ systemd.services.suid-sgid-wrappers = {
+ wantedBy = lib.mkForce [ "systemd-user-sessions.service" ];
+ before = lib.mkForce [ "systemd-user-sessions.service" "shutdown.target" ];
+ };
};
};
@@ -121,7 +128,7 @@ let
};
});
in
-pkgs.writeShellScriptBin "run-firecracker-vm" ''
+pkgs.writeShellScriptBin "run-firecracker-vm" /* sh */ ''
# usage: run-firecracker-vm [STORE-PATH...]
# Packs the closure of the guest system (plus any given store paths) into
# an erofs image, which the guest mounts read-only at /nix/store.