nixos/modules/users/root.nix

17 lines
265 B
Nix
Raw Normal View History

2023-06-09 20:54:03 +08:00
{ pkgs, ... }@inputs:
{
config =
{
users =
{
users.root =
{
passwordFile = inputs.config.sops.secrets."password/root".path;
shell = inputs.pkgs.zsh;
};
mutableUsers = false;
};
sops.secrets."password/root".neededForUsers = true;
};
}