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