22 lines
412 B
Nix
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 ];
|
|
}
|