nixos-config/configs/nixos/_users/plover/default.nix

31 lines
882 B
Nix
Raw Normal View History

2022-11-23 05:27:01 +00:00
# This is the user that is often used for servers.
{ foodogsquaredUtils, ... }:
2022-11-23 05:27:01 +00:00
let
user = "plover";
homeManagerUser = foodogsquaredUtils.getConfig "home-manager" user;
in
2022-11-23 05:27:01 +00:00
{
users.users.${user} = {
home = "/home/${user}";
2024-09-29 04:26:18 +00:00
hashedPassword = "$y$j9T$43ExH5GLbEGwgnNGhmcTD/$qXoZE5Cm9O2Z3zMM/VyCZ18qN2Hc9.KvCnVz6tmjVVD";
extraGroups = [ "wheel" ];
2022-11-23 05:27:01 +00:00
useDefaultShell = true;
isNormalUser = true;
description = "The go-to user for server systems.";
2024-09-29 04:26:18 +00:00
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGo3tfNQjWZ5pxlqREfBgQJxdNzGHKJIy5hDS9Z+Hpth plover.foodogsquared.one"
];
openssh.authorizedKeys.keyFiles = [
../../../home-manager/foo-dogsquared/files/ssh-key.pub
../../../home-manager/foo-dogsquared/files/ssh-key-2.pub
];
};
home-manager.users.${user} = {
imports = [ homeManagerUser ];
};
2022-11-23 05:27:01 +00:00
}