more moving

This commit is contained in:
mjallen18
2024-02-29 14:17:34 -06:00
parent 347d30094b
commit ab42ace3b6
11 changed files with 128 additions and 82 deletions

View File

@@ -0,0 +1,23 @@
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.apps.discover-wrapped;
# discover-wrapper is needed as of 1/24/24 since PackageKit does not work correctly so this removes error messages.
discover-wrapped = pkgs.symlinkJoin {
name = "discover-flatpak-backend";
paths = [ pkgs.libsForQt5.discover ];
buildInputs = [ pkgs.makeWrapper ];
postBuild = ''
wrapProgram $out/bin/plasma-discover --add-flags "--backends flatpak"
'';
};
in
{
imports = [ ./options.nix ];
config = mkIf cfg.enable {
# Configure environment
environment.systemPackages = [ discover-wrapped ];
};
}

View File

@@ -0,0 +1,6 @@
{ lib, ... }:
with lib; {
options.apps.discover-wrapped = {
enable = mkEnableOption "enable discover with flatpak";
};
}

View File

@@ -3,6 +3,7 @@
./samba
./apps/collabora
# ./apps/dashy
./apps/discover-wrapped
./apps/jellyfin
./apps/jellyseerr
./apps/mariadb