nix-infra/users/root/default.nix
2024-05-04 12:03:59 +02:00

13 lines
326 B
Nix

{ pkgs, lib, config, ... }:
{
deployment.keys."root_password_hash" = {
keyCommand = [ "pass" "users/root/hashedPassword" ];
};
users.users.root = {
shell = pkgs.fish;
hashedPasswordFile = lib.mkDefault config.deployment.keys."root_password_hash".path;
};
home-manager.users.root = import ./home.nix;
}