2022-11-23 05:27:01 +00:00
|
|
|
# This is the user that is often used for servers.
|
2024-02-11 07:16:25 +00:00
|
|
|
{ lib, pkgs, foodogsquaredLib, ... }:
|
2022-11-23 05:27:01 +00:00
|
|
|
|
2022-12-03 05:46:46 +00:00
|
|
|
let
|
|
|
|
user = "plover";
|
2024-02-11 07:16:25 +00:00
|
|
|
homeManagerUser = foodogsquaredLib.getConfig "home-manager" user;
|
2022-12-03 05:46:46 +00:00
|
|
|
in
|
2022-11-23 05:27:01 +00:00
|
|
|
{
|
2022-12-03 05:46:46 +00:00
|
|
|
users.users.${user} = {
|
|
|
|
home = "/home/${user}";
|
2022-11-25 13:26:48 +00:00
|
|
|
hashedPassword = "$6$gpgBrL3.RAGa9NBp$93Ac5ZW53KcgbA9q4awVKA.bVArP7Hw1NbyakT30Mav.7obIuN17WWijT.EaBSJU6ArvdXTehC3xZ9/9oZPDR0";
|
2023-02-11 07:24:04 +00:00
|
|
|
extraGroups = [ "wheel" "wireshark" ];
|
2022-11-23 05:27:01 +00:00
|
|
|
useDefaultShell = true;
|
|
|
|
isNormalUser = true;
|
|
|
|
description = "The go-to user for server systems.";
|
2022-11-27 16:41:27 +00:00
|
|
|
|
|
|
|
openssh.authorizedKeys.keyFiles = [
|
2024-01-14 23:45:43 +00:00
|
|
|
../../../home-manager/foo-dogsquared/files/ssh-key.pub
|
|
|
|
../../../home-manager/foo-dogsquared/files/ssh-key-2.pub
|
|
|
|
../../ni/files/ssh-key.pub
|
2022-11-27 16:41:27 +00:00
|
|
|
];
|
2022-11-25 13:26:48 +00:00
|
|
|
};
|
2022-12-03 05:46:46 +00:00
|
|
|
|
2023-02-11 07:24:04 +00:00
|
|
|
programs.wireshark.enable = true;
|
|
|
|
|
2022-12-03 05:46:46 +00:00
|
|
|
home-manager.users.${user} = { lib, ... }: {
|
|
|
|
imports = [ homeManagerUser ];
|
|
|
|
};
|
2022-11-23 05:27:01 +00:00
|
|
|
}
|