Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
DataEraserC committed Dec 14, 2023
1 parent cb3724b commit 85cf804
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
21 changes: 21 additions & 0 deletions home/common/modules/fhs.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
pkgs,
...
}: {
home.packages = with pkgs; [
# create a fhs environment by command `fhs`, so we can run non-nixos packages in nixos!
(
let
base = pkgs.appimageTools.defaultFhsEnvArgs;
in
pkgs.buildFHSUserEnv (base
// {
name = "fhs";
targetPkgs = pkgs: (base.targetPkgs pkgs) ++ [pkgs.pkg-config];
profile = "export FHS=1";
runScript = "bash";
extraOutputsToInstall = ["dev"];
})
)
];
}
1 change: 1 addition & 0 deletions home/nix-on-droid/aarch64/mondrian_1/modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@
# common
../../../../common/modules/neovim
../../../../common/modules/others.nix
../../../../common/modules/fhs.nix
];
}
1 change: 1 addition & 0 deletions home/nix-on-droid/aarch64/pstar_1/modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@
# common
../../../../common/modules/neovim
../../../../common/modules/others.nix
../../../../common/modules/fhs.nix
];
}

0 comments on commit 85cf804

Please sign in to comment.