diff --git a/hosts/bootstrap/default.nix b/hosts/bootstrap/default.nix index 94d1e8e..f92dae0 100644 --- a/hosts/bootstrap/default.nix +++ b/hosts/bootstrap/default.nix @@ -15,9 +15,6 @@ in ./hardware-configuration.nix ../common/core - # Import optional options - ../common/optional/openssh.nix - ]; nixpkgs = { @@ -57,7 +54,6 @@ in extraUsers = { root = { initialPassword = "1234"; - openssh.authorizedKeys.keys = lib.lists.forEach pubKeys (key: builtins.readFile key); }; }; diff --git a/hosts/common/core/default.nix b/hosts/common/core/default.nix index 283e359..790e75c 100644 --- a/hosts/common/core/default.nix +++ b/hosts/common/core/default.nix @@ -1,7 +1,4 @@ {pkgs, lib, inputs, config, ...}: -let - sopsHashedPasswordFile = lib.optionalString (lib.hasAttr "sops-nix" inputs) config.sops.secrets."passwords/root".path; -in { imports = [ ./sops.nix @@ -16,14 +13,4 @@ in pkgs.neovim ]; - users = { - mutableUsers = true; - extraUsers = { - root = { - initialPassword = "1234"; - hashedPasswordFile = sopsHashedPasswordFile; - }; - }; - }; - }