From dcf782084b9bf298b3bb6a40aa113b162bc51963 Mon Sep 17 00:00:00 2001
From: makefu <github@syntax-fehler.de>
Date: Fri, 7 Aug 2015 13:51:49 +0200
Subject: [PATCH] makefu/2configs:add hashedPasswords

---
 2configs/base.nix | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/2configs/base.nix b/2configs/base.nix
index 792cccc..2e18acf 100644
--- a/2configs/base.nix
+++ b/2configs/base.nix
@@ -2,7 +2,13 @@
 
 with lib;
 {
-  imports = [ ];
+  imports = [
+    {
+      users.extraUsers =
+        mapAttrs (_: h: { hashedPassword = h; })
+                 (import /root/src/secrets/hashedPasswords.nix);
+    }
+  ];
   krebs.enable = true;
   krebs.search-domain = "retiolum";
 
@@ -39,7 +45,7 @@ with lib;
   services.openssh.enable = true;
   nix.useChroot = true;
 
-  users.mutableUsers = true;
+  users.mutableUsers = false;
 
   boot.tmpOnTmpfs = true;
   systemd.tmpfiles.rules = [