this repo has no description

feat: add ai tools (#27)

authored by tghanken.tngl.sh and committed by GitHub 0800d9fb 6780ee81

Changed files
+65 -3
machines
hosts
desktops
inwin-tower
modules
desktop
apps
users
tghanken
packages
+3 -1
.gitignore
··· 3 3 .direnv/ 4 4 .DS_Store 5 5 .pre-commit-config.yaml 6 - logs/ 6 + logs/ 7 + .aider* 8 + .env
+6 -1
flake.nix
··· 57 57 }: let 58 58 inherit (flake-parts-lib) importApply; 59 59 flakeModules.clusters = importApply ./clusters/clusters.nix {inherit withSystem;}; 60 - flakeModules.machines = import ./machines/machines.nix; 60 + flakeModules.machines = importApply ./machines/machines.nix {inherit withSystem;}; 61 61 in { 62 62 imports = [ 63 63 flakeModules.clusters ··· 95 95 packages = with pkgs; [ 96 96 inputs.agenix.packages.${system}.default 97 97 ]; 98 + }; 99 + 100 + packages = import ./packages { 101 + inherit nixpkgs; 102 + pkgs = nixpkgs.legacyPackages.${system}; 98 103 }; 99 104 }; 100 105 });
+2
machines/hosts/desktops/inwin-tower/configuration.nix
··· 5 5 config, 6 6 lib, 7 7 pkgs, 8 + nixpkgs, 8 9 ... 9 10 }: 10 11 with config; { ··· 13 14 ./hardware-configuration.nix 14 15 15 16 # Include any additional apps desired 17 + ../../../modules/desktop/apps/aider.nix 16 18 ../../../modules/desktop/apps/jetbrains.nix 17 19 ../../../modules/desktop/apps/steam.nix 18 20 ];
+1 -1
machines/machines.nix
··· 1 - {inputs, ...}: 1 + localFlake: {inputs, ...}: 2 2 with inputs; let 3 3 home = [ 4 4 home-manager.nixosModules.home-manager
+5
machines/modules/desktop/apps/aider.nix
··· 1 + {pkgs, ...}: { 2 + environment.systemPackages = with pkgs; [ 3 + aider-chat 4 + ]; 5 + }
+1
machines/modules/users/tghanken/home-manager.nix
··· 157 157 shellAliases = { 158 158 gitprune = "git fetch -p ; git branch -r | awk '{print $1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk '{print $1}' | xargs git branch -D"; 159 159 gitsync = "git checkout main; git pull; gitprune;"; 160 + windsurf = "nix run github:tghanken/nixos-config#windsurf"; 160 161 }; 161 162 }; 162 163
+8
packages/default.nix
··· 1 + { 2 + pkgs, 3 + nixpkgs, 4 + }: let 5 + inherit (pkgs) callPackage python3Packages; 6 + in { 7 + windsurf = callPackage ./windsurf.nix {inherit nixpkgs;}; 8 + }
+39
packages/windsurf.nix
··· 1 + { 2 + lib, 3 + stdenv, 4 + nixpkgs, 5 + callPackage, 6 + fetchurl, 7 + nixosTests, 8 + commandLineArgs ? "", 9 + useVSCodeRipgrep ? stdenv.hostPlatform.isDarwin, 10 + }: 11 + # https://windsurf-stable.codeium.com/api/update/linux-x64/stable/latest 12 + let 13 + version = "1.1.0"; # "windsurfVersion" 14 + hash = "c418a14b63f051e96dafb37fe06f1fe0b10ba3c8"; # "version" 15 + in 16 + callPackage "${nixpkgs}/pkgs/applications/editors/vscode/generic.nix" rec { 17 + inherit commandLineArgs useVSCodeRipgrep version; 18 + 19 + pname = "windsurf"; 20 + 21 + executableName = "windsurf"; 22 + longName = "Windsurf"; 23 + shortName = "windsurf"; 24 + 25 + src = fetchurl { 26 + url = "https://windsurf-stable.codeiumdata.com/linux-x64/stable/${hash}/Windsurf-linux-x64-${version}.tar.gz"; 27 + hash = "sha256-fsDPzHtAmQIfFX7dji598Q+KXO6A5F9IFEC+bnmQzVU="; 28 + }; 29 + 30 + sourceRoot = "Windsurf"; 31 + 32 + tests = nixosTests.vscodium; 33 + 34 + updateScript = "nil"; 35 + 36 + meta = { 37 + description = "The first agentic IDE, and then some"; 38 + }; 39 + }