From 8d36c91bff480e43b68308d2ec7467941ab853b7 Mon Sep 17 00:00:00 2001 From: Payas Relekar Date: Sat, 27 May 2023 15:17:49 +0530 Subject: [PATCH] common: Add fsh alias to enable FHS with all currently installed libs --- modules/common.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/common.nix b/modules/common.nix index 3fa8b02..b9f7548 100644 --- a/modules/common.nix +++ b/modules/common.nix @@ -13,5 +13,16 @@ fzf # fuzzy search in command line nix-output-monitor deploy-rs + + ( + let base = pkgs.appimageTools.defaultFhsEnvArgs; in + pkgs.buildFHSUserEnv (base // { + name = "fhs"; + targetPkgs = pkgs: (base.targetPkgs pkgs) ++ [ pkgs.pkg-config ]; + profile = "export FHS=1"; + runScript = "fish"; + extraOutputsToInstall = [ "dev" ]; + }) + ) ]; }