Files
garandos/modules/core/flatpak.nix
T
GarandPLG 551463fe38 Add Arduino support, dialout group, and Zed skill
- Enable the Arduino IDE flatpak and add it to the system modules list.

- Add the user to the `dialout` group for serial device access.
- Include a new Zed skill configuration that fetches a remote skill
  file.
2026-06-22 17:10:51 +02:00

31 lines
791 B
Nix

{
lib,
config,
...
}: let
mkFlatpakPackage = name: pkgId: {
options.flatpak.packages.${name}.enable = lib.mkEnableOption "Flatpak: ${name}";
config.services.flatpak.packages =
lib.mkIf config.flatpak.packages.${name}.enable [pkgId];
};
flatpakPackages = {
sober = "org.vinegarhq.Sober";
warehouse = "io.github.flattool.Warehouse";
flatseal = "com.github.tchx84.Flatseal";
upscaler = "io.gitlab.theevilskeleton.Upscaler";
arduino = "cc.arduino.IDE2";
};
in {
options.flatpak.enable = lib.mkEnableOption "Flatpak";
config.services.flatpak = lib.mkIf config.flatpak.enable {
enable = true;
update.onActivation = true;
packages = [];
};
imports = builtins.attrValues (builtins.mapAttrs mkFlatpakPackage flatpakPackages);
}