system: add nix-ld
This commit is contained in:
parent
7d15904e7c
commit
c51d9ee3f1
4 changed files with 24 additions and 0 deletions
21
system/nix-ld.nix
Normal file
21
system/nix-ld.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
{
|
||||
options.my.nix-ld.enable = lib.mkEnableOption { };
|
||||
|
||||
config = lib.mkIf (config.my.nix-ld.enable) {
|
||||
programs.nix-ld = {
|
||||
enable = true;
|
||||
libraries =
|
||||
with pkgs;
|
||||
# run appimages + linux games natively
|
||||
[ fuse ]
|
||||
++ (appimageTools.defaultFhsEnvArgs.multiPkgs pkgs)
|
||||
++ (appimageTools.defaultFhsEnvArgs.targetPkgs pkgs);
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue