mirror of
https://github.com/kp2pml30/dotfiles.git
synced 2026-04-14 14:21:45 +04:00
29 lines
518 B
Nix
29 lines
518 B
Nix
{ pkgs, lib, ... }:
|
|
{
|
|
users.mutableUsers = false;
|
|
|
|
users.users.claude = {
|
|
isNormalUser = true;
|
|
extraGroups = [ "wheel" ];
|
|
shell = pkgs.fish;
|
|
hashedPassword = "";
|
|
};
|
|
|
|
users.users.root.hashedPassword = "";
|
|
|
|
security.sudo.wheelNeedsPassword = false;
|
|
|
|
programs.fish.enable = true;
|
|
|
|
services.openssh = {
|
|
enable = true;
|
|
settings = {
|
|
PermitRootLogin = "yes";
|
|
PermitEmptyPasswords = "yes";
|
|
};
|
|
};
|
|
|
|
networking.firewall.allowedTCPPorts = [ 22 ];
|
|
|
|
nix.settings.trusted-users = [ "root" "claude" ];
|
|
}
|