Files
nixos-config/hosts/common/features/flatpak.nix
T
Miguel PalhasandClaude 2cfdc7e68e
CI / lint (push) Successful in 36s
CI / eval (push) Successful in 2m38s
feat(konishi): flatpak for PrusaSlicer 3.0 alpha
Prusa ships no Linux binary as of 3.0 — the GitHub release has only
.dmg and .zip, and Flathub is now the sole Linux channel, with alphas
in flathub-beta.

nixpkgs' services.flatpak only exposes `enable`, so this pulls in
nix-flatpak for declarative remotes and packages.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-09-01 15:08:33 +01:00

29 lines
823 B
Nix

{ inputs, lib, ... }:
{
imports = [ inputs.nix-flatpak.nixosModules.nix-flatpak ];
services.flatpak = {
enable = true;
# mkOptionDefault so the module's default `flathub` remote is kept rather
# than replaced.
remotes = lib.mkOptionDefault [
{
name = "flathub-beta";
location = "https://flathub.org/beta-repo/flathub-beta.flatpakrepo";
}
];
packages = [
# PrusaSlicer 3.x. As of 3.0 Prusa ships no Linux binary at all — Flathub
# is the only channel, and the alphas live in flathub-beta. Runs alongside
# pkgs.prusa-slicer (2.9.x, in home/common/programs/3d.nix): 3.x keeps its
# profiles in a separate PrusaSlicer3-dev config dir.
{
appId = "com.prusa3d.PrusaSlicer";
origin = "flathub-beta";
}
];
};
}