From 7a3fcd3deb6fc1ded82c681f7598c0ea3efdb341 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Tue, 13 Feb 2024 14:14:54 +0100 Subject: [PATCH] vms: enable sysusers --- nixosModules/clanCore/vm.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nixosModules/clanCore/vm.nix b/nixosModules/clanCore/vm.nix index 08f6779c8..af018dc3a 100644 --- a/nixosModules/clanCore/vm.nix +++ b/nixosModules/clanCore/vm.nix @@ -32,6 +32,12 @@ let boot.initrd.systemd.storePaths = [ pkgs.util-linux pkgs.e2fsprogs ]; boot.initrd.systemd.emergencyAccess = true; + # sysusers is faster than nixos's perl scripts + # and doesn't require state. + systemd.sysusers.enable = true; + users.mutableUsers = false; + users.allowNoPasswordLogin = true; + boot.initrd.kernelModules = [ "virtiofs" ]; virtualisation.writableStore = false; virtualisation.fileSystems = lib.mkForce ({