7d4c826e3f
I still have the issue where after reboots I can't log in to my machines without going through a horrible dance with booting a NixOS installer and so on. I suspect this has somethign to do with this initial hashed password set here, but I was unable to verify what password I've actually set up there, so I'm resetting it to a known string to verify my theory. Change-Id: Ic9d495255ca48110920cf2df371946ac146dcd72 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5865 Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
21 lines
542 B
Nix
21 lines
542 B
Nix
# Inject the right home-manager config for the machine.
|
|
|
|
{ config, depot, pkgs, ... }:
|
|
|
|
{
|
|
users.users.tazjin = {
|
|
isNormalUser = true;
|
|
createHome = true;
|
|
extraGroups = [ "wheel" "networkmanager" "video" "adbusers" ];
|
|
uid = 1000;
|
|
shell = pkgs.fish;
|
|
initialHashedPassword = "$2b$05$1eBPdoIgan/C/L8JFqIHBuVscQyTKw1L/4VBlzlLvLBEf6CXS3EW6";
|
|
};
|
|
|
|
nix = {
|
|
trustedUsers = [ "tazjin" ];
|
|
};
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.users.tazjin = depot.users.tazjin.home."${config.networking.hostName}";
|
|
}
|