added meta section
This commit is contained in:
@@ -3,9 +3,20 @@ let
|
|||||||
username = "john";
|
username = "john";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
# flake = lib.mkMerge [
|
flake = {
|
||||||
# (self.factory.user username true)
|
meta.users."${username}" = {
|
||||||
# ];
|
email = "32917998+jsl12@users.noreply.github.com";
|
||||||
|
name = "John Lancaster";
|
||||||
|
username = "${username}";
|
||||||
|
key = "";
|
||||||
|
keygrip = [
|
||||||
|
];
|
||||||
|
authorizedKeys = [
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIAUa4dcg1TWc4pW++uodyhX4eOqrX/QYIxFWtEP7HFJ john@john-pc-ubuntu"
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMOkGLo4N/L3RYvaIZ1FmePlxa1HK0fMciZxKtRhN58F root@janus"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# https://github.com/Doc-Steve/dendritic-design-with-flake-parts/wiki/Dendritic_Aspects#multi-context-aspect
|
# https://github.com/Doc-Steve/dendritic-design-with-flake-parts/wiki/Dendritic_Aspects#multi-context-aspect
|
||||||
flake.modules.nixos."${username}" = { pkgs, ... }: {
|
flake.modules.nixos."${username}" = { pkgs, ... }: {
|
||||||
@@ -17,10 +28,7 @@ in
|
|||||||
users.users."${username}" = {
|
users.users."${username}" = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
shell = pkgs.zsh;
|
shell = pkgs.zsh;
|
||||||
openssh.authorizedKeys.keys = [
|
openssh.authorizedKeys.keys = inputs.self.meta.users."${username}".authorizedKeys;
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIAUa4dcg1TWc4pW++uodyhX4eOqrX/QYIxFWtEP7HFJ john@john-pc-ubuntu"
|
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMOkGLo4N/L3RYvaIZ1FmePlxa1HK0fMciZxKtRhN58F root@janus"
|
|
||||||
];
|
|
||||||
extraGroups = [ "docker "];
|
extraGroups = [ "docker "];
|
||||||
};
|
};
|
||||||
programs.zsh.enable = true;
|
programs.zsh.enable = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user