auto: bootstrapping bootstrap-nixos
This commit is contained in:
parent
d0b5a08056
commit
9271ecc22b
|
@ -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);
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue