add vscode server
This commit is contained in:
parent
687d91f5cb
commit
6de30c0f0f
1 changed files with 10 additions and 2 deletions
12
flake.nix
12
flake.nix
|
|
@ -5,14 +5,22 @@
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
|
||||||
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
|
|
||||||
|
vscode-server.url = "github:nix-community/nixos-vscode-server";
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs@{ self, nixpkgs, nixpkgs-unstable, ... }: {
|
outputs = inputs@{ self, nixpkgs, nixpkgs-unstable, vscode-server, ... }: {
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
# revision = self.shortRev or self.dirtyShortRev or self.lastModified or "unknown";
|
# revision = self.shortRev or self.dirtyShortRev or self.lastModified or "unknown";
|
||||||
tartarus = nixpkgs.lib.nixosSystem rec {
|
tartarus = nixpkgs.lib.nixosSystem rec {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [ ./hosts/tartarus/configuration.nix ];
|
modules = [
|
||||||
|
./hosts/tartarus/configuration.nix
|
||||||
|
vscode-server.nixosModules.default
|
||||||
|
({ config, pkgs, ... }: {
|
||||||
|
services.vscode-server.enable = true;
|
||||||
|
})
|
||||||
|
];
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
pkgs-unstable = import nixpkgs-unstable {
|
pkgs-unstable = import nixpkgs-unstable {
|
||||||
inherit system;
|
inherit system;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue