From 302469b62a94990b09bbda81aea5f73848cfcf44 Mon Sep 17 00:00:00 2001 From: Tyler Beckman Date: Wed, 4 Dec 2024 19:31:29 -0700 Subject: [PATCH] Add direnv and C++ tools for school --- home-manager/modules/packages.nix | 6 +++++- home-manager/modules/shell/default.nix | 1 + home-manager/modules/shell/direnv.nix | 8 ++++++++ home-manager/modules/vscode.nix | 4 +++- 4 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 home-manager/modules/shell/direnv.nix diff --git a/home-manager/modules/packages.nix b/home-manager/modules/packages.nix index 7b13fef..ed0feb4 100755 --- a/home-manager/modules/packages.nix +++ b/home-manager/modules/packages.nix @@ -23,9 +23,12 @@ # Programming nixd # NixD LSP for .nix files - clang + gcc + (lib.meta.hiPrio clang) clang-tools + cling deno + gnumake # :3 fastfetch @@ -43,6 +46,7 @@ glow # Markdown rendering tealdeer # TLDR usbutils # `lsusb` + unzip # Process tools btop # Process monitor diff --git a/home-manager/modules/shell/default.nix b/home-manager/modules/shell/default.nix index cbc7eb4..596315d 100644 --- a/home-manager/modules/shell/default.nix +++ b/home-manager/modules/shell/default.nix @@ -2,6 +2,7 @@ { imports = [ ./btop.nix + ./direnv.nix ./konsole.nix ./starship.nix ./zsh.nix diff --git a/home-manager/modules/shell/direnv.nix b/home-manager/modules/shell/direnv.nix new file mode 100644 index 0000000..e48b6bc --- /dev/null +++ b/home-manager/modules/shell/direnv.nix @@ -0,0 +1,8 @@ +{ ... }: +{ + programs.direnv = { + enable = true; + enableZshIntegration = true; + nix-direnv.enable = true; + }; +} \ No newline at end of file diff --git a/home-manager/modules/vscode.nix b/home-manager/modules/vscode.nix index 97d1f21..cc07748 100644 --- a/home-manager/modules/vscode.nix +++ b/home-manager/modules/vscode.nix @@ -32,6 +32,7 @@ # Utilities streetsidesoftware.code-spell-checker # Spellchecking jeanp413.open-remote-ssh # Remote SSH + mkhl.direnv # nix-direnv autoloading ]) ++ (with vscode-marketplace; [ yy0931.save-as-root # Save as root over SSH @@ -85,6 +86,7 @@ }; }; }; + "direnv.restart.automatic" = true; }; }; -} \ No newline at end of file +}