nixos/modules/code-server/default.nix
2022-03-01 23:43:25 +01:00

22 lines
412 B
Nix

{ inputs, 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 ];
}