diff options
| author | Fuwn <[email protected]> | 2024-10-23 18:28:05 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-10-23 18:28:05 -0700 |
| commit | f2049fcd902463e0446f001457b959a584aa59a0 (patch) | |
| tree | 054ee1376fea11f6f26b6bbbb9d71f79ded53aa9 /modules/pc/software | |
| parent | lock: tsutsumi (diff) | |
| download | nixos-config-f2049fcd902463e0446f001457b959a584aa59a0.tar.xz nixos-config-f2049fcd902463e0446f001457b959a584aa59a0.zip | |
pc: add nix-ld and appimage runners
Diffstat (limited to 'modules/pc/software')
| -rw-r--r-- | modules/pc/software/default.nix | 1 | ||||
| -rw-r--r-- | modules/pc/software/runners/appimage.nix | 17 | ||||
| -rw-r--r-- | modules/pc/software/runners/default.nix | 6 | ||||
| -rw-r--r-- | modules/pc/software/runners/nix-ld.nix | 28 |
4 files changed, 52 insertions, 0 deletions
diff --git a/modules/pc/software/default.nix b/modules/pc/software/default.nix index 239bf93..79bd8ce 100644 --- a/modules/pc/software/default.nix +++ b/modules/pc/software/default.nix @@ -5,6 +5,7 @@ ./boot ./desktop ./multimedia + ./runners ./encryption.nix ./input.nix ./programs.nix diff --git a/modules/pc/software/runners/appimage.nix b/modules/pc/software/runners/appimage.nix new file mode 100644 index 0000000..0e86bf2 --- /dev/null +++ b/modules/pc/software/runners/appimage.nix @@ -0,0 +1,17 @@ +{ lib, pkgs, ... }: +{ + boot.binfmt.registrations = + lib.genAttrs + [ + "appimage" + "AppImage" + ] + (_: { + wrapInterpreterInShell = false; + interpreter = "${pkgs.appimage-run}/bin/appimage-run"; + recognitionType = "magic"; + offset = 0; + mask = "\\xff\\xff\\xff\\xff\\x00\\x00\\x00\\x00\\xff\\xff\\xff"; + magicOrExtension = "\\x7fELF....AI\\x02"; + }); +} diff --git a/modules/pc/software/runners/default.nix b/modules/pc/software/runners/default.nix new file mode 100644 index 0000000..2232b71 --- /dev/null +++ b/modules/pc/software/runners/default.nix @@ -0,0 +1,6 @@ +{ + imports = [ + ./appimage.nix + ./nix-ld.nix + ]; +} diff --git a/modules/pc/software/runners/nix-ld.nix b/modules/pc/software/runners/nix-ld.nix new file mode 100644 index 0000000..bd60a25 --- /dev/null +++ b/modules/pc/software/runners/nix-ld.nix @@ -0,0 +1,28 @@ +{ pkgs, ... }: +{ + programs.nix-ld = { + enable = true; + + libraries = with pkgs; [ + stdenv.cc.cc + openssl + curl + glib + util-linux + glibc + icu + libunwind + libuuid + zlib + libsecret + # graphical + freetype + libglvnd + libnotify + SDL2 + vulkan-loader + gdk-pixbuf + xorg.libX11 + ]; + }; +} |