fix vscode
This commit is contained in:
parent
d98a5734fc
commit
5101d47e2d
1 changed files with 48 additions and 45 deletions
|
|
@ -1,9 +1,11 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
config = (lib.mkIf config.osbmModules.services.vscode-server.enable {
|
||||
services.code-server = {
|
||||
# only true if the machine is not pochita
|
||||
enable = config.networking.hostName != "pochita";
|
||||
|
|
@ -50,4 +52,5 @@
|
|||
};
|
||||
};
|
||||
networking.firewall.allowedTCPPorts = [ config.services.code-server.port ];
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue