nixos/modules/code-server/default.nix

22 lines
407 B
Nix
Raw Normal View History

2022-02-16 22:19:13 +01:00
{ inputs, pkgs, ... }:
2022-01-03 14:18:55 +01:00
{
services.code-server = {
enable = true;
2022-02-16 22:19:13 +01:00
user = inputs.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-01-03 15:28:05 +01:00
bash
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-16 22:19:13 +01:00
HOME = "/home/${inputs.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
}