nixos/modules/code-server/default.nix

22 lines
407 B
Nix

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