mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 20:39:18 -08:00
22 lines
561 B
Nix
22 lines
561 B
Nix
{ config, lib, pkgs, meta, ... }:
|
|
|
|
{
|
|
security.sudo.wheelNeedsPassword = lib.mkForce false;
|
|
|
|
imports = with meta; [
|
|
users.kat.base
|
|
];
|
|
|
|
users.users.root = {
|
|
hashedPassword =
|
|
"$6$i28yOXoo$/WokLdKds5ZHtJHcuyGrH2WaDQQk/2Pj0xRGLgS8UcmY2oMv3fw2j/85PRpsJJwCB2GBRYRK5LlvdTleHd3mB.";
|
|
openssh.authorizedKeys.keys = with pkgs.lib;
|
|
concatLists (mapAttrsToList
|
|
(name: user:
|
|
if elem "wheel" user.extraGroups then
|
|
user.openssh.authorizedKeys.keys
|
|
else
|
|
[ ])
|
|
config.users.users);
|
|
};
|
|
}
|