From ecd30c343166c5ea900a0cf34100040e62e045fc Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Sat, 21 Jun 2025 23:53:27 +0200 Subject: [PATCH] feat: add appimage support for marpa and gampo --- hosts/gampo/configuration.nix | 5 ++++- hosts/marpa/configuration.nix | 5 ++++- hosts/tilo/configuration.nix | 5 ----- modules/appimage.nix | 15 +++++++++++++++ modules/system.nix | 1 + 5 files changed, 24 insertions(+), 7 deletions(-) create mode 100644 modules/appimage.nix diff --git a/hosts/gampo/configuration.nix b/hosts/gampo/configuration.nix index d7d333e..81cd8c9 100644 --- a/hosts/gampo/configuration.nix +++ b/hosts/gampo/configuration.nix @@ -39,7 +39,10 @@ sound.enable = true; }; - modules.hyprland.enable = true; + modules = { + appimage.enable = true; + hyprland.enable = true; + }; security.rtkit.enable = true; diff --git a/hosts/marpa/configuration.nix b/hosts/marpa/configuration.nix index 7df8bae..2c63574 100644 --- a/hosts/marpa/configuration.nix +++ b/hosts/marpa/configuration.nix @@ -55,7 +55,10 @@ }; }; - modules.hyprland.enable = true; + modules = { + appimage.enable = true; + hyprland.enable = true; + }; security.rtkit.enable = true; diff --git a/hosts/tilo/configuration.nix b/hosts/tilo/configuration.nix index 531b04a..91a096c 100644 --- a/hosts/tilo/configuration.nix +++ b/hosts/tilo/configuration.nix @@ -69,11 +69,6 @@ environment.systemPackages = [pkgs.openssl]; - # imports = [ - # # Include the results of the hardware scan. - # ./services.nix - # ]; - # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions # on your system were taken. It‘s perfectly fine and recommended to leave diff --git a/modules/appimage.nix b/modules/appimage.nix new file mode 100644 index 0000000..a8a00d3 --- /dev/null +++ b/modules/appimage.nix @@ -0,0 +1,15 @@ +{ + pkgs, + lib, + config, + ... +}: +with lib; let + cfg = config.modules.appimage; +in { + options.modules.appimage.enable = mkEnableOption "Enables AppImage support"; + config.programs.appimage = mkIf cfg.enable { + inherit (cfg) enable; + binfmt = true; + }; +} diff --git a/modules/system.nix b/modules/system.nix index dbf0bf8..38272e7 100644 --- a/modules/system.nix +++ b/modules/system.nix @@ -9,6 +9,7 @@ with lib; let in { imports = [ ./amdgpu.nix + ./appimage.nix ./boot.nix ./locale.nix ./networking.nix