Add hashedPasswordFile for jordan
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
{ config, options, lib, home-manager, ... }:
|
||||
{ config, options, lib, home-manager, inputs, ... }:
|
||||
|
||||
with lib;
|
||||
{
|
||||
@ -29,6 +29,7 @@ with lib;
|
||||
};
|
||||
|
||||
config = {
|
||||
age.secrets."passwords/users/jordan".file = "${inputs.secrets}/passwords/users/jordan.age";
|
||||
user =
|
||||
let user = builtins.getEnv "USER";
|
||||
name = if elem user [ "" "root" ] then "jordan" else user;
|
||||
@ -41,6 +42,7 @@ with lib;
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILVHTjsyMIV4THNw6yz0OxAxGnC+41gX72UrPqTzR+OS jordan@vimium.com"
|
||||
];
|
||||
hashedPasswordFile = config.age.secrets."passwords/users/jordan".path;
|
||||
home = "/home/${name}";
|
||||
group = "users";
|
||||
uid = 1000;
|
||||
|
Reference in New Issue
Block a user