From 9271ecc22bfb5ee94a2cc1a95fb2c495db26dcd9 Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 22 May 2024 21:17:27 +0100 Subject: [PATCH] auto: bootstrapping bootstrap-nixos --- hosts/bootstrap/default.nix | 4 ---- hosts/common/core/default.nix | 13 ------------- 2 files changed, 17 deletions(-) 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; - }; - }; - }; - }