mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 12:19:07 +00:00
users/plover: add home-manager user to config
This commit is contained in:
parent
b5b52426dc
commit
1e17c59034
@ -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.
|
||||
|
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user