Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yawnt/declarative-nix-flatpak
flatpak-install, but declarative
https://github.com/yawnt/declarative-nix-flatpak
Last synced: 3 months ago
JSON representation
flatpak-install, but declarative
- Host: GitHub
- URL: https://github.com/yawnt/declarative-nix-flatpak
- Owner: yawnt
- License: mit
- Created: 2022-09-02T18:32:58.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-09T19:01:20.000Z (almost 2 years ago)
- Last Synced: 2024-05-31T10:37:54.303Z (6 months ago)
- Language: Nix
- Size: 8.79 KB
- Stars: 49
- Watchers: 6
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
declarative-nix-flatpak
=======================install flatpak, the nix way!
```nix
{
description = "Plex HTPC";inputs.nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
inputs.flatpak.url = "github:yawnt/declarative-nix-flatpak/main";outputs = { self, nixpkgs, flatpak }: {
defaultPackage.x86_64-linux =
let
runtime = flatpak.lib.flatpak.fetchRuntimeFromFlatHub {
name = "org.freedesktop.Platform";
branch = "21.08";
commit = "c7252386179c4c1ecf5d93bdaec6ca82852dddfdae7112b5c3177f7424c4a928";
sha256 = "sha256-wuFiB2+x+Mj6FL9GgrknvD9Su6bWr5QVhgcB8/4uBQc=";
};
app = flatpak.lib.flatpak.fetchAppFromFlatHub {
name = "tv.plex.PlexHTPC";
commit = "2e5a23587e69324c32c99c50e9c235d17cc7157b9f4f51bed4655401491f35bc";
sha256 = "sha256-yxnsiou/RldhfdP4D7J7i00uNGm0TjHgrIp0TTwUq3o=";
inherit runtime;
};
in
flatpak.lib.flatpak.wrapFlatpakLauncher "tv.plex.plexHTPC" app runtime;
};
}
```