reformatted
This commit is contained in:
+34
-38
@@ -3,45 +3,41 @@ let
|
|||||||
username = "john";
|
username = "john";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
flake = {
|
flake.meta.users."${username}" = {
|
||||||
meta.users."${username}" = {
|
email = "32917998+jsl12@users.noreply.github.com";
|
||||||
email = "32917998+jsl12@users.noreply.github.com";
|
name = "John Lancaster";
|
||||||
name = "John Lancaster";
|
inherit username;
|
||||||
username = "${username}";
|
key = "";
|
||||||
key = "";
|
keygrip = [
|
||||||
keygrip = [
|
];
|
||||||
];
|
authorizedKeys = [
|
||||||
authorizedKeys = [
|
# "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIAUa4dcg1TWc4pW++uodyhX4eOqrX/QYIxFWtEP7HFJ john@john-pc-ubuntu"
|
||||||
# "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIAUa4dcg1TWc4pW++uodyhX4eOqrX/QYIxFWtEP7HFJ john@john-pc-ubuntu"
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMOkGLo4N/L3RYvaIZ1FmePlxa1HK0fMciZxKtRhN58F root@janus"
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMOkGLo4N/L3RYvaIZ1FmePlxa1HK0fMciZxKtRhN58F root@janus"
|
];
|
||||||
];
|
};
|
||||||
};
|
|
||||||
|
|
||||||
modules = {
|
flake.modules.nixos."${username}" = {
|
||||||
nixos."${username}" = {
|
imports = [
|
||||||
imports = [
|
inputs.home-manager.nixosModules.home-manager
|
||||||
inputs.home-manager.nixosModules.home-manager
|
(inputs.self.factory.user username true).nixos."${username}"
|
||||||
(inputs.self.factory.user username true).nixos."${username}"
|
];
|
||||||
];
|
users.users."${username}" = {
|
||||||
users.users."${username}" = {
|
openssh.authorizedKeys.keys = inputs.self.meta.users."${username}".authorizedKeys;
|
||||||
openssh.authorizedKeys.keys = inputs.self.meta.users."${username}".authorizedKeys;
|
extraGroups = [ "docker" ];
|
||||||
extraGroups = [ "docker" ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
homeManager."${username}" = with inputs.self.meta.users."${username}"; {
|
|
||||||
home.stateVersion = "25.11";
|
|
||||||
xdg.enable = true;
|
|
||||||
|
|
||||||
programs.git.settings.user.name = name;
|
|
||||||
programs.git.settings.user.email = email;
|
|
||||||
|
|
||||||
imports = with inputs.self.modules.homeManager; [
|
|
||||||
ssh
|
|
||||||
shell-tools
|
|
||||||
git
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
flake.modules.homeManager."${username}" = with inputs.self.meta.users."${username}"; {
|
||||||
|
home.stateVersion = "25.11";
|
||||||
|
xdg.enable = true;
|
||||||
|
|
||||||
|
programs.git.settings.user.name = name;
|
||||||
|
programs.git.settings.user.email = email;
|
||||||
|
|
||||||
|
imports = with inputs.self.modules.homeManager; [
|
||||||
|
ssh
|
||||||
|
shell-tools
|
||||||
|
git
|
||||||
|
];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user