mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-12 06:19:00 +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 = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
(lib.getUser "nixos" "admin")
|
|
||||||
|
|
||||||
(lib.mapHomeManagerUser "plover" {})
|
# The users for this host.
|
||||||
|
(lib.getUser "nixos" "admin")
|
||||||
(lib.getUser "nixos" "plover")
|
(lib.getUser "nixos" "plover")
|
||||||
|
|
||||||
# Hardened profile from nixpkgs.
|
# Hardened profile from nixpkgs.
|
||||||
|
@ -1,8 +1,13 @@
|
|||||||
# This is the user that is often used for servers.
|
# This is the user that is often used for servers.
|
||||||
{ lib, pkgs, ... }:
|
{ 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";
|
hashedPassword = "$6$gpgBrL3.RAGa9NBp$93Ac5ZW53KcgbA9q4awVKA.bVArP7Hw1NbyakT30Mav.7obIuN17WWijT.EaBSJU6ArvdXTehC3xZ9/9oZPDR0";
|
||||||
extraGroups = [ "wheel" ];
|
extraGroups = [ "wheel" ];
|
||||||
useDefaultShell = true;
|
useDefaultShell = true;
|
||||||
@ -14,4 +19,8 @@
|
|||||||
../../../hosts/ni/files/ssh-key.pub
|
../../../hosts/ni/files/ssh-key.pub
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
home-manager.users.${user} = { lib, ... }: {
|
||||||
|
imports = [ homeManagerUser ];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user