From 7e7d275411ed3039b12ca5e031c70a3592749334 Mon Sep 17 00:00:00 2001 From: Vivian Roest Date: Sun, 26 Nov 2023 17:30:39 +0100 Subject: [PATCH] update flake --- nixos/hosts/olympus/bastion/configuration.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/nixos/hosts/olympus/bastion/configuration.nix b/nixos/hosts/olympus/bastion/configuration.nix index 3cb429d7..22014cfe 100644 --- a/nixos/hosts/olympus/bastion/configuration.nix +++ b/nixos/hosts/olympus/bastion/configuration.nix @@ -3,6 +3,22 @@ # and in the NixOS manual (accessible by running ‘nixos-help’). { pkgs, inputs, ... }: { +let + fix-vscode = pkgs.writeScriptBin "fix-vscode" '' + #!${pkgs.stdenv.shell} + # Check if vscode-server dir exists + if [[ -d "$HOME/.vscode-server/bin" ]]; then + # For every bin folder within + for versiondir in "$HOME"/.vscode-server/bin/*; do + # Remove bundled node (dynamic links are borked for nix) + rm "$versiondir/node" + # symlink node form the nixpkg + ln -s "${pkgs.nodejs-slim}/bin/node" "$versiondir/node" + done + fi + ''; +in +{ imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix