mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-06-08 18:09:06 +02:00
Playing a little bit too much with users
This commit is contained in:
parent
516034c19f
commit
c186bc73a8
5 changed files with 29 additions and 5 deletions
20
users/default.nix
Normal file
20
users/default.nix
Normal 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;
|
||||
};
|
||||
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue