From ade2467f268d57b8d27e77a1b3067679c651603f Mon Sep 17 00:00:00 2001 From: Kopatz <7265381+Kropatz@users.noreply.github.com> Date: Mon, 28 Apr 2025 12:30:25 +0200 Subject: [PATCH] envfs for making normal shell scripts work --- modules/misc/cli-tools.nix | 5 +++++ systems/pc/configuration.nix | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/misc/cli-tools.nix b/modules/misc/cli-tools.nix index d4002a8..92150a7 100644 --- a/modules/misc/cli-tools.nix +++ b/modules/misc/cli-tools.nix @@ -27,6 +27,11 @@ in { ''; in mkIf cfg.enable { + + #Fuse filesystem that returns symlinks to executables based on the PATH of the requesting process. + #This is useful to execute shebangs on NixOS that assume hard coded locations in locations like /bin or /usr/bin etc. + services.envfs.enable = true; + environment.systemPackages = with pkgs; [ getTotalPowerUsed watchCurrentPowerUsed diff --git a/systems/pc/configuration.nix b/systems/pc/configuration.nix index 476277c..388b155 100644 --- a/systems/pc/configuration.nix +++ b/systems/pc/configuration.nix @@ -94,7 +94,7 @@ }; services.ollama = { enable = false; - acceleration = "cuda"; + acceleration = "rocm"; }; virtualisation.waydroid.enable = false;