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>
This commit is contained in:
Generated
+17
@@ -767,6 +767,22 @@
|
||||
"url": "https://git.naps.pt/naps62/maestro.git"
|
||||
}
|
||||
},
|
||||
"nix-flatpak": {
|
||||
"locked": {
|
||||
"lastModified": 1767983141,
|
||||
"narHash": "sha256-7ZCulYUD9RmJIDULTRkGLSW1faMpDlPKcbWJLYHoXcs=",
|
||||
"owner": "gmodena",
|
||||
"repo": "nix-flatpak",
|
||||
"rev": "440818969ac2cbd77bfe025e884d0aa528991374",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "gmodena",
|
||||
"ref": "latest",
|
||||
"repo": "nix-flatpak",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nix-index-database": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
@@ -1085,6 +1101,7 @@
|
||||
"home-manager": "home-manager",
|
||||
"hyprland": "hyprland",
|
||||
"maestro": "maestro",
|
||||
"nix-flatpak": "nix-flatpak",
|
||||
"nix-index-database": "nix-index-database",
|
||||
"nixpkgs": "nixpkgs_7",
|
||||
"nvchad-starter": "nvchad-starter",
|
||||
|
||||
@@ -80,6 +80,9 @@
|
||||
url = "git+https://git.naps.pt/yolo/rev.git";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
# Declarative flatpak remotes and packages; nixpkgs' services.flatpak only
|
||||
# exposes `enable`. Has no nixpkgs input to follow.
|
||||
nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=latest";
|
||||
nix-index-database = {
|
||||
url = "github:nix-community/nix-index-database";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
{ 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";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -20,6 +20,7 @@
|
||||
../common/features/wine.nix
|
||||
../common/features/gaming
|
||||
../common/features/appimage.nix
|
||||
../common/features/flatpak.nix
|
||||
../common/features/smb-mounts.nix
|
||||
../common/features/home
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user