I have this configuration:
Since i updated the channel to 20.09, i get this error:
[root@atomic:~]# nixos-rebuild switch
building Nix...
building the system configuration...
error: The option value `users.users' in `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/config/users-groups.nix' is not of type `attribute set of submodules'.
(use '--show-trace' to show detailed location information)
It looks like an error in users.users
, so i added that section, simplified, into another nixos config:
users.extraUsers = lib.genAttrs [
"alice"
"bob"
"carol"
] (user: {
isNormalUser = true;
home = "/var/www/${user}";
openssh.authorizedKeys.keys = [ "pubkey" ];
});
but that works without issues.
So i guess the error message is misleading. How can i solve this?