Playing a little bit too much with users

This commit is contained in:
Julien Malka 2021-12-22 11:54:06 +01:00
parent 516034c19f
commit c186bc73a8
5 changed files with 29 additions and 5 deletions

20
users/default.nix Normal file
View file

@ -0,0 +1,20 @@
{ config, pkgs, lib, ... }: {
users.mutableUsers = false;
users.defaultUserShell = pkgs.fish;
sops.secrets.user-root-password.neededForUsers = true;
programs.fish.enable = true;
users.users.root = {
uid = config.ids.uids.root;
description = "System administrator";
home = "/root";
shell = lib.mkForce config.users.defaultUserShell;
group = "root";
passwordFile = config.sops.secrets.user-root-password.path;
};
}