diff --git a/flake.lock b/flake.lock index 443bb9d..3a807f3 100644 --- a/flake.lock +++ b/flake.lock @@ -152,6 +152,24 @@ "type": "github" } }, + "flake-utils_3": { + "inputs": { + "systems": "systems_3" + }, + "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": [ @@ -321,6 +339,20 @@ "type": "github" } }, + "nixpkgs_2": { + "locked": { + "lastModified": 1682134069, + "narHash": "sha256-TnI/ZXSmRxQDt2sjRYK/8j8iha4B4zP2cnQCZZ3vp7k=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "fd901ef4bf93499374c5af385b2943f5801c0833", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "type": "indirect" + } + }, "poetry2nix": { "inputs": { "flake-utils": [ @@ -364,7 +396,8 @@ "nixpkgs": "nixpkgs", "nixpkgs-stable": "nixpkgs-stable", "sops-nix": "sops-nix", - "systems": "systems_2" + "systems": "systems_2", + "vscode-server": "vscode-server" } }, "sops-nix": { @@ -417,6 +450,21 @@ "type": "github" } }, + "systems_3": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, "treefmt-nix": { "inputs": { "nixpkgs": [ @@ -438,6 +486,25 @@ "repo": "treefmt-nix", "type": "github" } + }, + "vscode-server": { + "inputs": { + "flake-utils": "flake-utils_3", + "nixpkgs": "nixpkgs_2" + }, + "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 7e89184..cf3e518 100644 --- a/flake.nix +++ b/flake.nix @@ -32,6 +32,7 @@ inputs.nixpkgs.follows = "nixpkgs"; inputs.flake-parts.follows = "flake-parts"; }; + vscode-server.url = "github:nix-community/nixos-vscode-server"; nix-cfg-extra.url = "git+https://git.lgmrszd.xyz/lgmrszd/nix-cfg-extra-public.git"; }; @@ -43,6 +44,7 @@ sops-nix, mailserver, authentik-nix, + vscode-server, ... }: let @@ -101,6 +103,13 @@ nixosConfigurations.lgm-nixos = mkHostConfig { host = "laptop"; useHome = true; + extraModules = [ + vscode-server.nixosModules.default + ({ config, pkgs, ... }: { + services.vscode-server.enable = true; + services.vscode-server.installPath = "$HOME/.vscodium-server"; + }) + ]; }; nixosConfigurations.lgm-vps1 = mkHostConfig { host = "vps1";