[NixOS] Add vscode server fix

This commit is contained in:
Ivan Malison 2023-12-13 11:30:46 -07:00
parent 2c0fd64edd
commit 5692999aa1
4 changed files with 81 additions and 7 deletions

View File

@ -28,6 +28,7 @@
./ssh.nix
./syncthing.nix
./users.nix
./vscode.nix
./wsl.nix
./xmonad.nix
];

View File

@ -241,6 +241,24 @@
"type": "github"
}
},
"flake-utils_5": {
"inputs": {
"systems": "systems_5"
},
"locked": {
"lastModified": 1681202837,
"narHash": "sha256-H+Rh19JDwRtpVPAWp64F+rlEtxUWBAQW28eAi3SRSzg=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "cfacdce06f30d2b68473a46042957675eebb3401",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"fourmolu-011": {
"flake": false,
"locked": {
@ -1100,6 +1118,20 @@
"type": "github"
}
},
"nixpkgs_9": {
"locked": {
"lastModified": 1682134069,
"narHash": "sha256-TnI/ZXSmRxQDt2sjRYK/8j8iha4B4zP2cnQCZZ3vp7k=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "fd901ef4bf93499374c5af385b2943f5801c0833",
"type": "github"
},
"original": {
"id": "nixpkgs",
"type": "indirect"
}
},
"notifications-tray-icon": {
"inputs": {
"flake-utils": [
@ -1194,6 +1226,7 @@
"status-notifier-item": "status-notifier-item",
"systems": "systems_3",
"taffybar": "taffybar",
"vscode-server": "vscode-server",
"xmonad": "xmonad",
"xmonad-contrib": "xmonad-contrib"
}
@ -1337,6 +1370,21 @@
"type": "github"
}
},
"systems_5": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"taffybar": {
"inputs": {
"flake-utils": [
@ -1393,11 +1441,11 @@
},
"unstable": {
"locked": {
"lastModified": 1699963925,
"narHash": "sha256-LE7OV/SwkIBsCpAlIPiFhch/J+jBDGEZjNfdnzCnCrY=",
"lastModified": 1702312524,
"narHash": "sha256-gkZJRDBUCpTPBvQk25G0B7vfbpEYM5s5OZqghkjZsnE=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "bf744fe90419885eefced41b3e5ae442d732712d",
"rev": "a9bf124c46ef298113270b1f84a164865987a91c",
"type": "github"
},
"original": {
@ -1407,6 +1455,25 @@
"type": "github"
}
},
"vscode-server": {
"inputs": {
"flake-utils": "flake-utils_5",
"nixpkgs": "nixpkgs_9"
},
"locked": {
"lastModified": 1684517665,
"narHash": "sha256-SaAr66uCQ8CF75jIr23FZjk1+9Kfwm5sQnwV25206Gs=",
"owner": "nix-community",
"repo": "nixos-vscode-server",
"rev": "1e1358493df6529d4c7bc4cc3066f76fd16d4ae6",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nixos-vscode-server",
"type": "github"
}
},
"xmonad": {
"inputs": {
"flake-utils": [
@ -1421,11 +1488,11 @@
"unstable": "unstable"
},
"locked": {
"lastModified": 1699833963,
"narHash": "sha256-JNT6nnDJUvi/aPh9nOP7dQJGrfMdjzEabbHc+Qduwic=",
"lastModified": 1702103942,
"narHash": "sha256-zTJh3ANIfw9y9TdUiii6kjPTsS1Mq2dC1wBzFY4LwkQ=",
"owner": "xmonad",
"repo": "xmonad",
"rev": "2f585679120747defaa8b49880cbbab943b4c22c",
"rev": "fa124f56587e86d7670d2158705cc5f2f5e3853c",
"type": "github"
},
"original": {

View File

@ -103,6 +103,8 @@
};
};
vscode-server.url = "github:nix-community/nixos-vscode-server";
nixpkgs-regression = { url = "github:NixOS/nixpkgs"; };
nixified-ai = { url = "github:nixified-ai/flake"; };
@ -143,7 +145,7 @@
args@
{ system ? "x86_64-linux"
, baseModules ? []
, modules ? []
, modules ? [inputs.vscode-server.nixosModules.default]
, specialArgs ? {}
, ...
}:

4
nixos/vscode.nix Normal file
View File

@ -0,0 +1,4 @@
{ config, makeEnable, ... }:
makeEnable config "modules.vscode" true {
services.vscode-server.enable = true;
}