This repository has no description
0

Configure Feed

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

superconfig / 3modules / nichtparasoup.nix
4.5 kB 171 lines
1{ 2 self, 3 config, 4 lib, 5 pkgs, 6 ... 7}: 8 9with lib; 10 11{ 12 options.lass.nichtparasoup = { 13 enable = mkEnableOption "nichtparasoup funny image page"; 14 config = mkOption { 15 type = types.str; 16 default = '' 17 [General] 18 Port: 5001 19 IP: 0.0.0.0 20 Useragent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10) AppleWebKit/600.1.25 (KHTML, like Gecko) Version/8.0 Safari/600.1.25 21 22 [Cache] 23 Images_min_limit: 15 24 25 [Logging] 26 ;; possible destinations: file syslog 27 Destination: syslog 28 Verbosity: ERROR 29 30 [Sites] 31 SoupIO: everyone 32 Pr0gramm: new,top 33 Reddit: ${ 34 lib.concatStringsSep "," [ 35 "2healthbars" 36 "abandonedporn" 37 "animalsbeingderps" 38 "ANormalDayInRussia" 39 "assholedesign" 40 "AwesomeOffBrands" 41 "bizarrebuildings" 42 "bonehurtingjuice" 43 "boottoobig" 44 "bossfight" 45 "bravofotogeschichten" 46 "breathinginformation" 47 "buddhistmemes" 48 "cablefail" 49 "cableporn" 50 "catastrophicfailure" 51 "chairsunderwater" 52 "clevercomebacks" 53 "confusingperspective" 54 "conni" 55 "crappydesign" 56 "cursedcomments" 57 "desirepath" 58 "doenerverbrechen" 59 "dontdeadopeninside" 60 "educationalgifs" 61 "EngineeringPorn" 62 "eyebleach" 63 "forbiddensnacks" 64 "funnyanimals" 65 "gifs" 66 "Gittertiere" 67 "goodboomerhumor" 68 "grssk" 69 "halthoch" 70 "hmm" 71 "hmmm" 72 "holdmybeer" 73 "holup" 74 "iamatotalpieceofshit" 75 "ichbin40undlustig" 76 "idiotsincars" 77 "illegallysmolcats" 78 "infokriegerkutschen" 79 "instagramreality" 80 "instant_regret" 81 "itrunsdoom" 82 "itsaunixsystem" 83 "kamikazebywords" 84 "keming" 85 "kidsarefuckingstupid" 86 "kitchenconfidential" 87 "laughingbuddha" 88 "LiminalSpace" 89 "loadingicon" 90 "MachinePorn" 91 "mallninjashit" 92 "michaelbaygifs" 93 "mildlyinfuriating" 94 "miscatculations" 95 "natureisfuckinglit" 96 "nononoyesno" 97 "notinteresting" 98 "notliketheothergirls" 99 "oddlysatisfying" 100 "ofcoursethatsathing" 101 "okbuddylinux" 102 "OSHA" 103 "PeopleFuckingDying" 104 "Perfectfit" 105 "perfectloops" 106 "PerfectTiming" 107 "picsofunusualbirds" 108 "PixelArt" 109 "pizzacrimes" 110 "prequelmemes" 111 "Prisonwallet" 112 "reactiongifs" 113 "RealFakeDoors" 114 "reallifedoodles" 115 "RetroFuturism" 116 "robotsbeingjerks" 117 "SchizophreniaRides" 118 "scriptedasiangifs" 119 "shitposting" 120 "shittyfoodporn" 121 "shittyrobots" 122 "softwaregore" 123 "specializedtools" 124 "spicypillows" 125 "StallmanWasRight" 126 "startledcats" 127 "startrekstabilized" 128 "stupidfood" 129 "techsupportgore" 130 "thathappened" 131 "ThingsCutInHalfPorn" 132 "totallynotrobots" 133 "trippinthroughtime" 134 "Unexpected" 135 "urbanexploration" 136 "wasletztepreis" 137 "wellthatsucks" 138 "wertekinder" 139 "wewantplates" 140 "whatcouldgowrong" 141 "whatsthisbug" 142 "whatsthisplant" 143 "whatswrongwithyourdog" 144 "whenthe" 145 "yesyesyesyesno" 146 "youseeingthisshit" 147 ] 148 } 149 NineGag: geeky,wtf,hot,trending 150 Instagram: nature,wtf 151 Fourchan: sci 152 ''; 153 }; 154 }; 155 156 config = mkIf config.lass.nichtparasoup.enable { 157 systemd.services.nichtparasoup = { 158 description = "nichtparasoup"; 159 after = [ "network.target" ]; 160 wantedBy = [ "multi-user.target" ]; 161 162 restartIfChanged = true; 163 serviceConfig = { 164 Restart = "always"; 165 ExecStart = "${ 166 self.packages.${pkgs.system}.nichtparasoup 167 }/bin/nichtparasoup -c ${pkgs.writeText "config.ini" config.lass.nichtparasoup.config}"; 168 }; 169 }; 170 }; 171}