make users immutable (pw always from nixos config)

This commit is contained in:
Raphael Borun Das Gupta 2020-04-05 19:53:46 +00:00 committed by Fabian Hauser
parent 43b67a2911
commit 4a40bc7224

View file

@ -47,6 +47,7 @@
nix.trustedUsers = [ "root" "@wheel" ]; nix.trustedUsers = [ "root" "@wheel" ];
users.mutableUsers = false;
users.users = rec { users.users = rec {
root.openssh.authorizedKeys.keys = root.openssh.authorizedKeys.keys =
lib.flatten (map (u: u.openssh.authorizedKeys.keys) [ fhauser das-g ]); lib.flatten (map (u: u.openssh.authorizedKeys.keys) [ fhauser das-g ]);