fix: move fhs to be specific to home-manager per user

This commit is contained in:
Alexandre Cavalheiro 2024-11-14 17:39:21 -03:00
parent 99d3ba59ff
commit 13a96aaea8
Signed by: wizardlink
GPG key ID: A5767B54367CFBDF
3 changed files with 61 additions and 26 deletions

View file

@ -79,31 +79,5 @@
# Mail client # Mail client
thunderbird thunderbird
# Create an FHS environment using the command `fhs`, enabling the execution of non-NixOS packages in NixOS!
(
let
base = appimageTools.defaultFhsEnvArgs;
in
buildFHSUserEnv (
base
// {
name = "fhs";
targetPkgs =
pkgs:
(
# pkgs.buildFHSUserEnv provides only a minimal FHS environment,
# lacking many basic packages needed by most software.
# Therefore, we need to add them manually.
#
# pkgs.appimageTools provides basic packages required by most software.
(base.targetPkgs pkgs) ++ (with pkgs; [ nodejs ])
);
profile = "export FHS=1";
runScript = "bash";
extraOutputsToInstall = [ "dev" ];
}
)
)
]; ];
} }

View file

@ -79,6 +79,36 @@
home.packages = with pkgs; [ home.packages = with pkgs; [
pcsx2 pcsx2
# Create an FHS environment using the command `fhs`, enabling the execution of non-NixOS packages in NixOS!
(
let
base = appimageTools.defaultFhsEnvArgs;
in
buildFHSUserEnv (
base
// {
name = "fhs";
targetPkgs =
pkgs:
(
# pkgs.buildFHSUserEnv provides only a minimal FHS environment,
# lacking many basic packages needed by most software.
# Therefore, we need to add them manually.
#
# pkgs.appimageTools provides basic packages required by most software.
(base.targetPkgs pkgs)
++ (with pkgs; [
nodejs
dotnet-sdk_8
])
);
profile = "export FHS=1";
runScript = "bash";
extraOutputsToInstall = [ "dev" ];
}
)
)
]; ];
# #

View file

@ -62,6 +62,37 @@
## Tools ## Tools
# Utilities # Utilities
brightnessctl brightnessctl
# Create an FHS environment using the command `fhs`, enabling the execution of non-NixOS packages in NixOS!
(
let
base = appimageTools.defaultFhsEnvArgs;
in
buildFHSUserEnv (
base
// {
name = "fhs";
targetPkgs =
pkgs:
(
# pkgs.buildFHSUserEnv provides only a minimal FHS environment,
# lacking many basic packages needed by most software.
# Therefore, we need to add them manually.
#
# pkgs.appimageTools provides basic packages required by most software.
(base.targetPkgs pkgs)
++ (
with pkgs;
[
]
)
);
profile = "export FHS=1";
runScript = "bash";
extraOutputsToInstall = [ "dev" ];
}
)
)
]; ];
# #