butchered vscode thing, need to fix
This commit is contained in:
parent
bfa7a6fb91
commit
9143a8f513
2 changed files with 35 additions and 18 deletions
12
common/vscode-server/default.nix
Normal file
12
common/vscode-server/default.nix
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
## ALLOWS VS CODE SERVER ##
|
||||||
|
|
||||||
|
services.vscode-server.enable = true;
|
||||||
|
services.vscode-server.enableFHS = true;
|
||||||
|
|
||||||
|
programs.nix-ld = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.nix-ld-rs;
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,19 +1,29 @@
|
||||||
{ modulesPath, config, pkgs, hostName, ... }:
|
{
|
||||||
|
modulesPath,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
hostName,
|
||||||
|
...
|
||||||
|
}:
|
||||||
{
|
{
|
||||||
## MODULES & IMPORTS ##
|
## MODULES & IMPORTS ##
|
||||||
imports = [
|
imports = [
|
||||||
# Common Modules
|
# Common Modules
|
||||||
../../common/lxc
|
../../common/lxc
|
||||||
../../common/ssh
|
../../common/ssh
|
||||||
|
../../common/vscode-server
|
||||||
|
|
||||||
|
# Import hardware configuration.
|
||||||
|
./hardware.nix
|
||||||
|
];
|
||||||
|
|
||||||
# Import hardware configuration.
|
|
||||||
./hardware.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
|
|
||||||
## NETWORKING ##
|
## NETWORKING ##
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
allowedTCPPorts = [ 22 80 443 ];
|
allowedTCPPorts = [
|
||||||
|
22
|
||||||
|
80
|
||||||
|
443
|
||||||
|
];
|
||||||
allowedUDPPorts = [ ];
|
allowedUDPPorts = [ ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -29,17 +39,12 @@
|
||||||
x2goserver
|
x2goserver
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.java = {
|
programs.java = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.jdk; };
|
package = pkgs.jdk;
|
||||||
|
};
|
||||||
|
|
||||||
environment.variables = {
|
environment.variables = {
|
||||||
HOSTNAME = hostName;
|
HOSTNAME = hostName;
|
||||||
};
|
};
|
||||||
|
|
||||||
## VS CODE ##
|
|
||||||
programs.nix-ld = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.nix-ld-rs;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue