52 lines
1.3 KiB
Nix
52 lines
1.3 KiB
Nix
{ inputs, lib, ... }:
|
|
let
|
|
username = "john";
|
|
in
|
|
{
|
|
flake = {
|
|
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"
|
|
];
|
|
};
|
|
|
|
modules = lib.recursiveUpdate
|
|
(inputs.self.factory.user username true)
|
|
{
|
|
#
|
|
# NixOS
|
|
#
|
|
nixos."${username}" = {
|
|
users.users."${username}" = {
|
|
openssh.authorizedKeys.keys = inputs.self.meta.users."${username}".authorizedKeys;
|
|
extraGroups = [ "docker" ];
|
|
};
|
|
};
|
|
|
|
#
|
|
# Home Manager
|
|
#
|
|
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
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|