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 ##
|
||||
imports = [
|
||||
# Common Modules
|
||||
../../common/lxc
|
||||
../../common/ssh
|
||||
# Common Modules
|
||||
../../common/lxc
|
||||
../../common/ssh
|
||||
../../common/vscode-server
|
||||
|
||||
# Import hardware configuration.
|
||||
./hardware.nix
|
||||
];
|
||||
|
||||
# Import hardware configuration.
|
||||
./hardware.nix
|
||||
];
|
||||
|
||||
|
||||
## NETWORKING ##
|
||||
networking.firewall = {
|
||||
allowedTCPPorts = [ 22 80 443 ];
|
||||
allowedTCPPorts = [
|
||||
22
|
||||
80
|
||||
443
|
||||
];
|
||||
allowedUDPPorts = [ ];
|
||||
};
|
||||
|
||||
|
@ -29,17 +39,12 @@
|
|||
x2goserver
|
||||
];
|
||||
|
||||
programs.java = {
|
||||
programs.java = {
|
||||
enable = true;
|
||||
package = pkgs.jdk; };
|
||||
package = pkgs.jdk;
|
||||
};
|
||||
|
||||
environment.variables = {
|
||||
HOSTNAME = hostName;
|
||||
};
|
||||
|
||||
## VS CODE ##
|
||||
programs.nix-ld = {
|
||||
enable = true;
|
||||
package = pkgs.nix-ld-rs;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue