diff --git a/hosts/monolith/default.nix b/hosts/monolith/default.nix index 410300e..280cc3f 100644 --- a/hosts/monolith/default.nix +++ b/hosts/monolith/default.nix @@ -42,6 +42,7 @@ in }; my.gaming.enable = true; + my.nix-ld.enable = true; boot.extraModulePackages = with config.boot.kernelPackages; [ zenpower ]; diff --git a/system/configuration.nix b/system/configuration.nix index f515e43..2380d22 100644 --- a/system/configuration.nix +++ b/system/configuration.nix @@ -17,6 +17,7 @@ ./locale.nix ./users.nix ./containers.nix + ./nix-ld.nix ./network.nix ../settings ]; diff --git a/system/nix-ld.nix b/system/nix-ld.nix new file mode 100644 index 0000000..33afa69 --- /dev/null +++ b/system/nix-ld.nix @@ -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); + }; + }; +} diff --git a/user/dummy.nix b/user/dummy.nix index 39043dd..91e66cc 100644 --- a/user/dummy.nix +++ b/user/dummy.nix @@ -1,6 +1,7 @@ { lib, ... }: { options.my = { + nix-ld.enable = lib.mkEnableOption { }; android.enable = lib.mkEnableOption { }; media-packages.enable = lib.mkEnableOption { }; containers.enable = lib.mkEnableOption { };