cleanup
This commit is contained in:
@@ -26,25 +26,5 @@
|
||||
description = "Public key of the user";
|
||||
};
|
||||
};
|
||||
custom.user = {
|
||||
name = lib.mkOption {
|
||||
default = "mainuser";
|
||||
description = ''
|
||||
username
|
||||
'';
|
||||
};
|
||||
layout = lib.mkOption {
|
||||
default = "de";
|
||||
description = "keyboard layout";
|
||||
};
|
||||
variant = lib.mkOption {
|
||||
default = "";
|
||||
description = "keyboard variant";
|
||||
};
|
||||
sshKey = lib.mkOption {
|
||||
default = throw "No ssh key specified";
|
||||
description = "Public key of the user";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
19
users/testuser/default.nix
Normal file
19
users/testuser/default.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
inputs,
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [ ../default.nix ];
|
||||
|
||||
programs.zsh.enable = true;
|
||||
users.users.testuser = {
|
||||
isNormalUser = true;
|
||||
initialPassword = "1";
|
||||
description = "Test user";
|
||||
shell = pkgs.zsh;
|
||||
openssh.authorizedKeys.keys = [ config.mainUser.sshKey ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user