auto: bootstrapping bootstrap-nixos

This commit is contained in:
Sam 2024-05-22 21:17:27 +01:00
parent d0b5a08056
commit 9271ecc22b
2 changed files with 0 additions and 17 deletions

View File

@ -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);
};
};

View File

@ -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;
};
};
};
}