diff --git a/flake.lock b/flake.lock index 1fe9480..0d902a3 100644 --- a/flake.lock +++ b/flake.lock @@ -185,6 +185,24 @@ "type": "github" } }, + "flake-utils_2": { + "inputs": { + "systems": "systems_6" + }, + "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" + } + }, "fw_nix": { "inputs": { "git-hooks": "git-hooks", @@ -560,7 +578,8 @@ "nix-homebrew": "nix-homebrew_2", "nixpkgs": "nixpkgs", "nixpkgs-screen": "nixpkgs-screen", - "systems": "systems_5" + "systems": "systems_5", + "vscode-server": "vscode-server_2" } }, "systems": { @@ -638,6 +657,21 @@ "type": "github" } }, + "systems_6": { + "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", @@ -659,6 +693,27 @@ "repo": "nixos-vscode-server", "type": "github" } + }, + "vscode-server_2": { + "inputs": { + "flake-utils": "flake-utils_2", + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1770124655, + "narHash": "sha256-yHmd2B13EtBUPLJ+x0EaBwNkQr9LTne1arLVxT6hSnY=", + "owner": "nix-community", + "repo": "nixos-vscode-server", + "rev": "92ce71c3ba5a94f854e02d57b14af4997ab54ef0", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "nixos-vscode-server", + "type": "github" + } } }, "root": "root", diff --git a/flake.nix b/flake.nix index abcdd4b..ff54f56 100644 --- a/flake.nix +++ b/flake.nix @@ -9,6 +9,10 @@ # - caption and hardstatus color lacks intensity nixpkgs-screen.url = "github:NixOS/nixpkgs/e518d4ad2bcad74f98fec028cf21ce5b1e5020dd"; systems.url = "github:nix-systems/default"; + vscode-server = { + url = "github:nix-community/nixos-vscode-server"; + inputs.nixpkgs.follows = "nixpkgs"; + }; home-manager = { url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs"; @@ -63,6 +67,7 @@ modules = [ inputs.fw_nix.nixosModules.identities inputs.artem_dotfiles.homeModules.linux-headless + inputs.vscode-server.homeModules.default ./hosts/dia/home.nix ]; }; diff --git a/hosts/dia/home.nix b/hosts/dia/home.nix index 0cea8bc..23cec6a 100644 --- a/hosts/dia/home.nix +++ b/hosts/dia/home.nix @@ -2,4 +2,9 @@ _: { imports = [ ../common/home.nix ]; + services.vscode-server.enable = true; + services.vscode-server.installPath = [ + "$HOME/.vscode-server" + "$HOME/.antigravity-server" + ]; }