mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-30 12:06:13 +01:00
20 lines
439 B
Nix
20 lines
439 B
Nix
|
{
|
||
|
pkgs,
|
||
|
lib,
|
||
|
...
|
||
|
}: let
|
||
|
inherit (lib) getExe';
|
||
|
in {
|
||
|
users.groups."bot" = {};
|
||
|
users.users."bot" = {
|
||
|
group = "bot";
|
||
|
home = "/var/empty";
|
||
|
shell = "${getExe' pkgs.busybox "sh"}";
|
||
|
isNormalUser = false;
|
||
|
isSystemUser = true;
|
||
|
openssh.authorizedKeys.keys = [
|
||
|
''restrict,command="echo \"It's working\"" ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFVkFvalffJ/SMjJGG3WPiqCqFygnWzhGUaeALBIoCsJ (none)''
|
||
|
];
|
||
|
};
|
||
|
}
|