test vscode

This commit is contained in:
Sense T 2023-11-13 09:39:35 +08:00
parent 085366ae38
commit 2b9cf7362c
2 changed files with 14 additions and 1 deletions

View File

@ -12,9 +12,13 @@
url = "github:oxalica/nil/2023-08-09";
inputs.nixpkgs.follows = "nixpkgs";
};
vscode-server = {
url = "github:nix-community/nixos-vscode-server";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { nixpkgs, home-manager, nil, ... }:
outputs = { nixpkgs, home-manager, nil, vscode-server, ... }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
@ -27,12 +31,14 @@
modules = [
./home.nix
./programs.nix
./services.nix
];
# Optionally use extraSpecialArgs
# to pass through arguments to home.nix
extraSpecialArgs = {
nil = nil.packages.${system};
vscode-server = vscode-server.pakcages.${system};
};
};
};

7
services.nix Normal file
View File

@ -0,0 +1,7 @@
{
imports = [
<vscode-server>/modules/vscode-server/home.nix
];
services.vscode-server.enable = true;
}