2018-05-04 18:31:12 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with import <stockholm/lib>;
|
|
|
|
|
|
|
|
{
|
|
|
|
options.lass.nichtparasoup = {
|
|
|
|
enable = mkEnableOption "nichtparasoup funny image page";
|
|
|
|
config = mkOption {
|
|
|
|
type = types.str;
|
|
|
|
default = ''
|
|
|
|
[General]
|
|
|
|
Port: 5001
|
|
|
|
IP: 0.0.0.0
|
|
|
|
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
|
|
|
|
|
|
|
|
[Cache]
|
|
|
|
Images_min_limit: 15
|
|
|
|
|
|
|
|
[Logging]
|
|
|
|
;; possible destinations: file syslog
|
|
|
|
Destination: syslog
|
|
|
|
Verbosity: ERROR
|
|
|
|
|
|
|
|
[Sites]
|
|
|
|
SoupIO: everyone
|
|
|
|
Pr0gramm: new,top
|
2022-03-15 19:02:17 +00:00
|
|
|
Reddit: ${lib.concatStringsSep "," [
|
2022-03-15 21:04:00 +00:00
|
|
|
"2healthbars"
|
2022-03-15 19:02:17 +00:00
|
|
|
"abandonedporn"
|
|
|
|
"animalsbeingderps"
|
2022-03-15 19:12:06 +00:00
|
|
|
"ANormalDayInRussia"
|
2022-03-15 19:02:17 +00:00
|
|
|
"assholedesign"
|
2022-03-15 21:04:00 +00:00
|
|
|
"AwesomeOffBrands"
|
2022-03-15 19:02:17 +00:00
|
|
|
"bizarrebuildings"
|
|
|
|
"bonehurtingjuice"
|
|
|
|
"boottoobig"
|
|
|
|
"bossfight"
|
2022-03-15 21:04:00 +00:00
|
|
|
"bravofotogeschichten"
|
|
|
|
"breathinginformation"
|
2022-03-15 19:02:17 +00:00
|
|
|
"buddhistmemes"
|
|
|
|
"cablefail"
|
|
|
|
"cableporn"
|
|
|
|
"catastrophicfailure"
|
|
|
|
"chairsunderwater"
|
|
|
|
"clevercomebacks"
|
2022-03-15 21:04:00 +00:00
|
|
|
"confusingperspective"
|
|
|
|
"conni"
|
2022-03-15 19:02:17 +00:00
|
|
|
"crappydesign"
|
|
|
|
"cursedcomments"
|
|
|
|
"desirepath"
|
|
|
|
"doenerverbrechen"
|
|
|
|
"dontdeadopeninside"
|
|
|
|
"educationalgifs"
|
2022-03-15 19:12:06 +00:00
|
|
|
"EngineeringPorn"
|
2022-03-15 19:02:17 +00:00
|
|
|
"eyebleach"
|
|
|
|
"forbiddensnacks"
|
|
|
|
"funnyanimals"
|
|
|
|
"gifs"
|
2022-03-15 21:04:00 +00:00
|
|
|
"Gittertiere"
|
|
|
|
"goodboomerhumor"
|
2022-03-15 19:02:17 +00:00
|
|
|
"grssk"
|
2022-03-15 21:04:00 +00:00
|
|
|
"halthoch"
|
2022-03-15 19:02:17 +00:00
|
|
|
"hmm"
|
2022-03-15 21:04:00 +00:00
|
|
|
"hmmm"
|
2022-03-15 19:02:17 +00:00
|
|
|
"holdmybeer"
|
|
|
|
"holup"
|
|
|
|
"iamatotalpieceofshit"
|
|
|
|
"ichbin40undlustig"
|
|
|
|
"idiotsincars"
|
|
|
|
"illegallysmolcats"
|
2022-03-15 21:04:00 +00:00
|
|
|
"infokriegerkutschen"
|
2022-03-15 19:02:17 +00:00
|
|
|
"instagramreality"
|
|
|
|
"instant_regret"
|
2022-03-15 21:04:00 +00:00
|
|
|
"itrunsdoom"
|
2022-03-15 19:02:17 +00:00
|
|
|
"itsaunixsystem"
|
|
|
|
"kamikazebywords"
|
|
|
|
"keming"
|
|
|
|
"kidsarefuckingstupid"
|
|
|
|
"kitchenconfidential"
|
|
|
|
"laughingbuddha"
|
2022-03-15 21:04:00 +00:00
|
|
|
"LiminalSpace"
|
2022-03-15 19:02:17 +00:00
|
|
|
"loadingicon"
|
2022-03-15 21:04:00 +00:00
|
|
|
"MachinePorn"
|
|
|
|
"mallninjashit"
|
2022-03-15 19:02:17 +00:00
|
|
|
"michaelbaygifs"
|
|
|
|
"mildlyinfuriating"
|
2022-03-15 21:04:00 +00:00
|
|
|
"miscatculations"
|
2022-03-15 19:02:17 +00:00
|
|
|
"natureisfuckinglit"
|
|
|
|
"nononoyesno"
|
|
|
|
"notinteresting"
|
|
|
|
"notliketheothergirls"
|
|
|
|
"oddlysatisfying"
|
|
|
|
"ofcoursethatsathing"
|
2022-03-15 21:04:00 +00:00
|
|
|
"okbuddylinux"
|
2022-03-15 19:12:06 +00:00
|
|
|
"OSHA"
|
|
|
|
"PeopleFuckingDying"
|
2022-03-15 21:04:00 +00:00
|
|
|
"Perfectfit"
|
2022-03-15 19:02:17 +00:00
|
|
|
"perfectloops"
|
2022-03-15 19:12:06 +00:00
|
|
|
"PerfectTiming"
|
2022-03-15 19:02:17 +00:00
|
|
|
"picsofunusualbirds"
|
2022-03-15 19:12:06 +00:00
|
|
|
"PixelArt"
|
2022-03-15 19:02:17 +00:00
|
|
|
"pizzacrimes"
|
|
|
|
"prequelmemes"
|
2022-03-15 21:04:00 +00:00
|
|
|
"Prisonwallet"
|
2022-03-15 19:02:17 +00:00
|
|
|
"reactiongifs"
|
2022-03-15 21:04:00 +00:00
|
|
|
"RealFakeDoors"
|
2022-03-15 19:02:17 +00:00
|
|
|
"reallifedoodles"
|
2022-03-15 19:12:06 +00:00
|
|
|
"RetroFuturism"
|
2022-03-15 19:02:17 +00:00
|
|
|
"robotsbeingjerks"
|
2022-03-15 21:04:00 +00:00
|
|
|
"SchizophreniaRides"
|
2022-03-15 19:02:17 +00:00
|
|
|
"scriptedasiangifs"
|
|
|
|
"shitposting"
|
|
|
|
"shittyfoodporn"
|
|
|
|
"shittyrobots"
|
|
|
|
"softwaregore"
|
2022-03-15 21:04:00 +00:00
|
|
|
"specializedtools"
|
|
|
|
"spicypillows"
|
|
|
|
"StallmanWasRight"
|
2022-03-15 19:02:17 +00:00
|
|
|
"startledcats"
|
|
|
|
"startrekstabilized"
|
|
|
|
"stupidfood"
|
|
|
|
"techsupportgore"
|
|
|
|
"thathappened"
|
2022-03-15 19:12:06 +00:00
|
|
|
"ThingsCutInHalfPorn"
|
2022-03-15 19:02:17 +00:00
|
|
|
"totallynotrobots"
|
|
|
|
"trippinthroughtime"
|
2022-03-15 19:12:06 +00:00
|
|
|
"Unexpected"
|
2022-03-15 21:04:00 +00:00
|
|
|
"urbanexploration"
|
2022-03-15 19:02:17 +00:00
|
|
|
"wasletztepreis"
|
|
|
|
"wellthatsucks"
|
2022-03-15 21:04:00 +00:00
|
|
|
"wertekinder"
|
2022-03-15 19:02:17 +00:00
|
|
|
"wewantplates"
|
|
|
|
"whatcouldgowrong"
|
|
|
|
"whatsthisbug"
|
|
|
|
"whatsthisplant"
|
|
|
|
"whatswrongwithyourdog"
|
|
|
|
"whenthe"
|
|
|
|
"yesyesyesyesno"
|
|
|
|
"youseeingthisshit"
|
|
|
|
]}
|
2018-05-04 18:31:12 +00:00
|
|
|
NineGag: geeky,wtf,hot,trending
|
2018-05-08 06:30:10 +00:00
|
|
|
Instagram: nature,wtf
|
2018-05-04 18:31:12 +00:00
|
|
|
Fourchan: sci
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf config.lass.nichtparasoup.enable {
|
|
|
|
systemd.services.nichtparasoup = {
|
|
|
|
description = "nichtparasoup";
|
|
|
|
after = [ "network.target" ];
|
|
|
|
wantedBy = [ "multi-user.target" ];
|
|
|
|
|
|
|
|
restartIfChanged = true;
|
|
|
|
serviceConfig = {
|
|
|
|
Restart = "always";
|
|
|
|
ExecStart = "${pkgs.nichtparasoup}/bin/nichtparasoup -c ${pkgs.writeText "config.ini"config.lass.nichtparasoup.config}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|