nixos-config/configs/nixos/_users/plover/default.nix
Gabriel Arazas 0760acb676
configs: consolidate NixOS and home-manager config into one configs folder
Now we're going beyond these structuring as we might have to accomodate
non-system configurations like Nixvim.
2024-01-15 07:45:43 +08:00

30 lines
837 B
Nix

# This is the user that is often used for servers.
{ lib, pkgs, ... }:
let
user = "plover";
homeManagerUser = lib.private.getConfig "home-manager" user;
in
{
users.users.${user} = {
home = "/home/${user}";
hashedPassword = "$6$gpgBrL3.RAGa9NBp$93Ac5ZW53KcgbA9q4awVKA.bVArP7Hw1NbyakT30Mav.7obIuN17WWijT.EaBSJU6ArvdXTehC3xZ9/9oZPDR0";
extraGroups = [ "wheel" "wireshark" ];
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
../../ni/files/ssh-key.pub
];
};
programs.wireshark.enable = true;
home-manager.users.${user} = { lib, ... }: {
imports = [ homeManagerUser ];
};
}