From 96e530e2cb3feb43dc77d14a067375e80d30f3da Mon Sep 17 00:00:00 2001 From: Timothy DeHerrera Date: Fri, 13 Dec 2019 22:47:05 -0700 Subject: [PATCH] set root password in core profile --- configurations/{gaze12.nix => hp500281.nix} | 5 ----- profiles/core.nix | 7 ++++++- 2 files changed, 6 insertions(+), 6 deletions(-) rename configurations/{gaze12.nix => hp500281.nix} (66%) diff --git a/configurations/gaze12.nix b/configurations/hp500281.nix similarity index 66% rename from configurations/gaze12.nix rename to configurations/hp500281.nix index af4ba43a..fc47702d 100644 --- a/configurations/gaze12.nix +++ b/configurations/hp500281.nix @@ -10,9 +10,4 @@ in enable = true; editor = false; }; - - - users.users.root.hashedPassword = - readFile - ../secrets/root; } diff --git a/profiles/core.nix b/profiles/core.nix index b1a87af5..74519b75 100644 --- a/profiles/core.nix +++ b/profiles/core.nix @@ -124,6 +124,11 @@ services.earlyoom.enable = true; - users.mutableUsers = false; + users = { + mutableUsers = false; + + users.root.hashedPassword = readFile + ../secrets/root; + }; }