nix-infra/users/root/default.nix

13 lines
300 B
Nix

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