This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

1{ 2 self, 3 lib, 4 ... 5}: 6{ 7 perSystem = 8 { pkgs, ... }: 9 { 10 legacyPackages.wrappers.mpv = self.wrapLib.mkWrapper (wlib: { 11 inherit pkgs; 12 module = 13 { config, ... }: 14 { 15 options = { 16 scripts = lib.mkOption { 17 type = lib.types.listOf lib.types.package; 18 default = [ ]; 19 description = "Scripts to add to mpv via override."; 20 }; 21 "mpv.input" = lib.mkOption { 22 type = wlib.types.file; 23 default.content = ""; 24 }; 25 "mpv.conf" = lib.mkOption { 26 type = wlib.types.file; 27 default.content = '' 28 osd-font-size=20 29 ''; 30 }; 31 extraFlags = lib.mkOption { 32 type = lib.types.attrsOf lib.types.unspecified; # TODO add list handling 33 default = { }; 34 description = "Extra flags to pass to mpv."; 35 }; 36 }; 37 config.flags = { 38 "--no-config" = { }; 39 "--input-conf" = config."mpv.input".path; 40 "--include" = config."mpv.conf".path; 41 } 42 // config.extraFlags; 43 config.package = lib.mkDefault ( 44 pkgs.mpv.override { 45 scripts = config.scripts; 46 } 47 ); 48 }; 49 }); 50 }; 51}