From 871d4f72564e68502698fb936cfed0577c7e680b Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 22 May 2024 20:34:18 +0100 Subject: [PATCH] auto: bootstrapping sparky --- hosts/common/core/default.nix | 3 ++- hosts/common/users/sam/default.nix | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hosts/common/core/default.nix b/hosts/common/core/default.nix index 1b29121..283e359 100644 --- a/hosts/common/core/default.nix +++ b/hosts/common/core/default.nix @@ -17,9 +17,10 @@ in ]; users = { - mutableUsers = false; + mutableUsers = true; extraUsers = { root = { + initialPassword = "1234"; hashedPasswordFile = sopsHashedPasswordFile; }; }; diff --git a/hosts/common/users/sam/default.nix b/hosts/common/users/sam/default.nix index e1da96b..9ca6dcc 100644 --- a/hosts/common/users/sam/default.nix +++ b/hosts/common/users/sam/default.nix @@ -7,9 +7,10 @@ let in { users.users.sam = { - #mutableUsers = false; + mutableUsers = true; isNormalUser = true; shell = pkgs.zsh; # default shell + initialPassword = "nixos"; hashedPasswordFile = sopsHashedPasswordFile; openssh.authorizedKeys.keys = lib.lists.forEach pubKeys (key: builtins.readFile key);