butchered vscode thing, need to fix

This commit is contained in:
Chris Toph 2025-02-15 22:19:43 -05:00
parent bfa7a6fb91
commit 9143a8f513
2 changed files with 35 additions and 18 deletions

View 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;
};
}

View file

@ -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;
};
}