nixos-config/users/nixos/plover/default.nix

30 lines
838 B
Nix
Raw Normal View History

2022-11-23 05:27:01 +00:00
# This is the user that is often used for servers.
{ lib, pkgs, ... }:
let
user = "plover";
2023-12-24 10:13:27 +00:00
homeManagerUser = lib.private.getUser "home-manager" user;
in
2022-11-23 05:27:01 +00:00
{
users.users.${user} = {
home = "/home/${user}";
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.";
openssh.authorizedKeys.keyFiles = [
../../home-manager/foo-dogsquared/files/ssh-key.pub
../../home-manager/foo-dogsquared/files/ssh-key-2.pub
../../../hosts/ni/files/ssh-key.pub
];
};
2023-02-11 07:24:04 +00:00
programs.wireshark.enable = true;
home-manager.users.${user} = { lib, ... }: {
imports = [ homeManagerUser ];
};
2022-11-23 05:27:01 +00:00
}