diff options
1 files changed, 8 insertions, 1 deletions
| -rw-r--r-- | configuration.nix | 9 |
diff --git a/configuration.nix b/configuration.nix index edf504a..978074d 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,4 +1,4 @@ -{ config, pkgs, ... }: { +{ config, pkgs, lib, ... }: { # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions # on your system were taken. It's perfectly fine and recommended to leave @@ -16,4 +16,11 @@ nix.settings.experimental-features = [ "nix-command" "flakes" ]; nixpkgs.config.allowUnfree = true; + + virtualisation.vmVariant = { + users.users = lib.pipe config.users.users [ + (lib.filterAttrs (username: opts: opts.isNormalUser || username == "root")) + (builtins.mapAttrs (_: opts: lib.mkForce (opts // { password = "john"; }))) + ]; + }; } |
