mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-23 21:29:22 +08:00
17 lines
265 B
Nix
17 lines
265 B
Nix
{ 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;
|
|
};
|
|
}
|