users/plover: add home-manager user to config

This commit is contained in:
Gabriel Arazas 2022-12-03 13:46:46 +08:00
parent b5b52426dc
commit 1e17c59034
2 changed files with 12 additions and 3 deletions

View File

@ -14,9 +14,9 @@ in
{
imports = [
./hardware-configuration.nix
(lib.getUser "nixos" "admin")
(lib.mapHomeManagerUser "plover" {})
# The users for this host.
(lib.getUser "nixos" "admin")
(lib.getUser "nixos" "plover")
# Hardened profile from nixpkgs.

View File

@ -1,8 +1,13 @@
# This is the user that is often used for servers.
{ lib, pkgs, ... }:
let
user = "plover";
homeManagerUser = lib.getUser "home-manager" user;
in
{
users.users.plover = {
users.users.${user} = {
home = "/home/${user}";
hashedPassword = "$6$gpgBrL3.RAGa9NBp$93Ac5ZW53KcgbA9q4awVKA.bVArP7Hw1NbyakT30Mav.7obIuN17WWijT.EaBSJU6ArvdXTehC3xZ9/9oZPDR0";
extraGroups = [ "wheel" ];
useDefaultShell = true;
@ -14,4 +19,8 @@
../../../hosts/ni/files/ssh-key.pub
];
};
home-manager.users.${user} = { lib, ... }: {
imports = [ homeManagerUser ];
};
}