From acd07507f719fd156be4a84146561c35eb2aaa92 Mon Sep 17 00:00:00 2001 From: Evar Smith Date: Wed, 12 Mar 2025 13:01:05 -0400 Subject: [PATCH] feat: vscode server --- flake.lock | 69 ++++++++++++++++++++++++++++++++++++++++- flake.nix | 1 + nixos/default.nix | 1 + nixos/vscode-server.nix | 8 +++++ 4 files changed, 78 insertions(+), 1 deletion(-) create mode 100644 nixos/vscode-server.nix diff --git a/flake.lock b/flake.lock index d7a9911..fd01e2c 100644 --- a/flake.lock +++ b/flake.lock @@ -119,6 +119,24 @@ "type": "github" } }, + "flake-utils": { + "inputs": { + "systems": "systems_2" + }, + "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" + } + }, "home-manager": { "inputs": { "nixpkgs": "nixpkgs_3" @@ -314,6 +332,20 @@ "type": "github" } }, + "nixpkgs_5": { + "locked": { + "lastModified": 1682134069, + "narHash": "sha256-TnI/ZXSmRxQDt2sjRYK/8j8iha4B4zP2cnQCZZ3vp7k=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "fd901ef4bf93499374c5af385b2943f5801c0833", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "type": "indirect" + } + }, "root": { "inputs": { "ags": "ags", @@ -327,7 +359,8 @@ "nix-std": "nix-std", "nixos-facter-modules": "nixos-facter-modules", "nixos-hardware": "nixos-hardware", - "nixpkgs": "nixpkgs_4" + "nixpkgs": "nixpkgs_4", + "vscode-server": "vscode-server" } }, "systems": { @@ -344,6 +377,40 @@ "repo": "default-linux", "type": "github" } + }, + "systems_2": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, + "vscode-server": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs_5" + }, + "locked": { + "lastModified": 1729422940, + "narHash": "sha256-DlvJv33ml5UTKgu4b0HauOfFIoDx6QXtbqUF3vWeRCY=", + "owner": "nix-community", + "repo": "nixos-vscode-server", + "rev": "8b6db451de46ecf9b4ab3d01ef76e59957ff549f", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "nixos-vscode-server", + "type": "github" + } } }, "root": "root", diff --git a/flake.nix b/flake.nix index cf07479..9fcad16 100644 --- a/flake.nix +++ b/flake.nix @@ -2,6 +2,7 @@ inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; flake-parts.url = "github:hercules-ci/flake-parts"; + vscode-server.url = "github:nix-community/nixos-vscode-server"; nix-std.url = "github:chessai/nix-std"; diff --git a/nixos/default.nix b/nixos/default.nix index d8244ea..ea6bc03 100644 --- a/nixos/default.nix +++ b/nixos/default.nix @@ -17,6 +17,7 @@ ./nix-maintenance.nix # ./hardening.nix ./boot-pretty.nix + ./vscode-server.nix ./desktop/plasma ./tailscale.nix diff --git a/nixos/vscode-server.nix b/nixos/vscode-server.nix new file mode 100644 index 0000000..89961fa --- /dev/null +++ b/nixos/vscode-server.nix @@ -0,0 +1,8 @@ +{ inputs, ... }: +{ + imports = [ + inputs.vscode-server.nixosModules.default + ]; + + services.vscode-server.enable = true; +} \ No newline at end of file