nixos/modules/code-server/default.nix

22 lines
408 B
Nix

{ custom }: { pkgs, ... }:
{
services.code-server = {
enable = true;
user = custom.username;
host = "0.0.0.0";
auth = "none";
extraPackages = with pkgs;
[
coreutils
python3
# other
bashInteractive
git
];
extraEnvironment = {
HOME = "/home/${custom.username}";
};
};
networking.firewall.allowedTCPPorts = [ 4444 ];
}