From 0194ac2c302b0760b0cd0a424453bd9a01144a33 Mon Sep 17 00:00:00 2001 From: Lumpiasty Date: Mon, 22 Jun 2026 15:49:26 +0200 Subject: [PATCH] add fhs bash for stubborn projects --- home-modules/default.nix | 1 + home-modules/fhsBash.nix | 15 +++++++++++++++ users/user/home.nix | 1 + 3 files changed, 17 insertions(+) create mode 100644 home-modules/fhsBash.nix diff --git a/home-modules/default.nix b/home-modules/default.nix index 6d30b80..790856d 100644 --- a/home-modules/default.nix +++ b/home-modules/default.nix @@ -7,5 +7,6 @@ ./dev.nix ./gaming.nix ./plasma.nix + ./fhsBash.nix ]; } \ No newline at end of file diff --git a/home-modules/fhsBash.nix b/home-modules/fhsBash.nix new file mode 100644 index 0000000..e613090 --- /dev/null +++ b/home-modules/fhsBash.nix @@ -0,0 +1,15 @@ +{ config, lib, pkgs, osConfig, ... }: + +{ + options.lumpiastyHome.fhs = lib.mkEnableOption "FHS bash wrapper"; + + config = lib.mkIf (config.lumpiastyHome.fhs) { + home.packages = [ + (pkgs.buildFHSEnv { + name = "fhs"; + targetPkgs = p: []; + runScript = "bash"; + }) + ]; + }; +} diff --git a/users/user/home.nix b/users/user/home.nix index 6264f93..9ab0014 100644 --- a/users/user/home.nix +++ b/users/user/home.nix @@ -8,6 +8,7 @@ enablePcApps = osConfig.lumpiasty.pc; dev = osConfig.lumpiasty.pc; gaming = osConfig.lumpiasty.gaming; + fhs = osConfig.lumpiasty.pc; }; home.stateVersion = "24.05";