summary refs log tree commit diff
path: root/nixos/modules/virtualisation/amazon-image.nix
diff options
context:
space:
mode:
authorRickard Nilsson <rickynils@gmail.com>2014-02-24 18:05:26 +0100
committerRickard Nilsson <rickynils@gmail.com>2014-02-24 18:05:26 +0100
commitd5211b0e0e45c840d415733b56d9be93224f1616 (patch)
tree9d368a0518ed7d09fd2330662f4e8b4ddc912da1 /nixos/modules/virtualisation/amazon-image.nix
parent51c9dbc9f3ad4cf3142d0e50b040f4ba14b84ad2 (diff)
downloadnixpkgs-d5211b0e0e45c840d415733b56d9be93224f1616.tar
nixpkgs-d5211b0e0e45c840d415733b56d9be93224f1616.tar.gz
nixpkgs-d5211b0e0e45c840d415733b56d9be93224f1616.tar.bz2
nixpkgs-d5211b0e0e45c840d415733b56d9be93224f1616.tar.lz
nixpkgs-d5211b0e0e45c840d415733b56d9be93224f1616.tar.xz
nixpkgs-d5211b0e0e45c840d415733b56d9be93224f1616.tar.zst
nixpkgs-d5211b0e0e45c840d415733b56d9be93224f1616.zip
Make initialRootPassword overrideable in all virtualisation modules, not just virtualbox.
Diffstat (limited to 'nixos/modules/virtualisation/amazon-image.nix')
-rw-r--r--nixos/modules/virtualisation/amazon-image.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/virtualisation/amazon-image.nix b/nixos/modules/virtualisation/amazon-image.nix
index abd2a1084bd..99d6f927ef0 100644
--- a/nixos/modules/virtualisation/amazon-image.nix
+++ b/nixos/modules/virtualisation/amazon-image.nix
@@ -164,5 +164,5 @@ with pkgs.lib;
   # Prevent logging in as root without a password.  This doesn't really matter,
   # since the only PAM services that allow logging in with a null
   # password are local ones that are inaccessible on EC2 machines.
-  security.initialRootPassword = "!";
+  security.initialRootPassword = mkDefault "!";
 }