From 1203e87ea2c0e8e63c714b9132ce60084e6d4ed1 Mon Sep 17 00:00:00 2001 From: 514fpv Date: Sat, 24 Feb 2024 15:35:03 +0800 Subject: [PATCH] fix: add test password for koishi in vmVariant --- home/profile.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/home/profile.nix b/home/profile.nix index ef8be539..d14f39c4 100644 --- a/home/profile.nix +++ b/home/profile.nix @@ -159,6 +159,12 @@ in { # enable passwordless sudo security.sudo.wheelNeedsPassword = false; + + # enable access in build-vm + virtualisation.vmVariant = { + users.users.koishi.password = "passwd"; + users.users.koishi.hashedPasswordFile = mkForce null; + }; }; # this is for home components that need to extend nixos