2022-11-03 23:06:33 +01:00
|
|
|
{ custom }: { pkgs, ... }:
|
2022-01-03 14:18:55 +01:00
|
|
|
{
|
|
|
|
services.code-server = {
|
|
|
|
enable = true;
|
2022-02-21 11:36:12 +01:00
|
|
|
user = custom.username;
|
2022-01-03 14:36:14 +01:00
|
|
|
host = "0.0.0.0";
|
2022-01-03 14:38:29 +01:00
|
|
|
auth = "none";
|
2022-01-03 15:16:47 +01:00
|
|
|
extraPackages = with pkgs;
|
|
|
|
[
|
2022-01-31 12:43:54 +01:00
|
|
|
coreutils
|
2022-01-03 15:58:32 +01:00
|
|
|
python3
|
2022-01-03 15:16:47 +01:00
|
|
|
# other
|
2022-02-28 20:49:06 +01:00
|
|
|
bashInteractive
|
2022-01-03 15:16:47 +01:00
|
|
|
git
|
2022-01-03 15:21:43 +01:00
|
|
|
];
|
2022-01-31 11:43:02 +01:00
|
|
|
extraEnvironment = {
|
2022-02-21 11:36:12 +01:00
|
|
|
HOME = "/home/${custom.username}";
|
2022-01-31 11:43:02 +01:00
|
|
|
};
|
2022-01-03 14:18:55 +01:00
|
|
|
};
|
2022-01-03 14:32:00 +01:00
|
|
|
networking.firewall.allowedTCPPorts = [ 4444 ];
|
2022-01-03 14:18:55 +01:00
|
|
|
}
|