1
0
Fork 0

Package logfeed

This commit is contained in:
Malte Brandy 2020-12-09 21:11:07 +01:00
parent 515963da25
commit 322d923722
No known key found for this signature in database
GPG key ID: 226A2D41EF5378C9
3 changed files with 15 additions and 6 deletions

View file

@ -113,27 +113,27 @@ in {
systemd.user = {
timers.logfeed = {
Timer = { OnCalendar = "19:55"; };
Install = { WantedBy = [ "timers.target" ]; };
Timer.OnCalendar = "19:55";
Install.WantedBy = [ "timers.target" ];
};
services = {
logfeed = {
Unit = { Description = "Logfeed"; };
Unit.Description = "Logfeed";
Service = {
ExecStart =
"${config.home.homeDirectory}/.cabal/bin/logfeed /var/www/rss/chats.xml";
"${pkgs.logfeed}/bin/logfeed /var/www/rss/chats.xml";
Type = "oneshot";
};
};
weechat = {
Unit = { Description = "Weechat Tmux Session"; };
Unit.Description = "Weechat Tmux Session";
Service = {
Type = "forking";
ExecStart =
"${pkgs.tmux}/bin/tmux -L weechat -2 new-session -d -s irc -n weechat '${weechat}/bin/weechat'";
Restart = "always";
};
Install = { WantedBy = [ "default.target" ]; };
Install.WantedBy = [ "default.target" ];
};
};
};

View file

@ -35,6 +35,12 @@
"rev": "312a8bc1fd1ed04c6564be4db4d08b7bcdc64764",
"type": "git"
},
"logfeed": {
"branch": "master",
"repo": "git@hera.m-0.eu:logfeed",
"rev": "6f0132abbab58da56e109cedf851a9d9f8a2f8c6",
"type": "git"
},
"nixos-20.09": {
"branch": "nixos-20.09",
"description": "Nixpkgs/NixOS branches that track the Nixpkgs/NixOS channels",

View file

@ -0,0 +1,3 @@
final: prev: let
master = import prev.sources.nixpkgs-master {};
in master.haskellPackages.callCabal2nix "logfeed" prev.sources.logfeed {}