diff options
Diffstat (limited to 'makefu/2configs')
-rw-r--r-- | makefu/2configs/deployment/newsbot.nix | 18 | ||||
-rw-r--r-- | makefu/2configs/torrent.nix | 4 |
2 files changed, 20 insertions, 2 deletions
diff --git a/makefu/2configs/deployment/newsbot.nix b/makefu/2configs/deployment/newsbot.nix new file mode 100644 index 000000000..748803447 --- /dev/null +++ b/makefu/2configs/deployment/newsbot.nix @@ -0,0 +1,18 @@ +{ config, pkgs, ... }: + +let + newsfile = pkgs.writeText "feeds" '' + nixoswiki-bot|https://github.com/Mic92/nixos-wiki/wiki.atom|#krebs + ''; +in { + environment.systemPackages = [ + pkgs.newsbot-js + ]; + krebs.newsbot-js = { + enable = true; + ircServer = "chat.freenode.net"; + feeds = newsfile; + urlShortenerHost = "go"; + urlShortenerPort = "80"; + }; +} diff --git a/makefu/2configs/torrent.nix b/makefu/2configs/torrent.nix index 69d40094f..85d2e6c67 100644 --- a/makefu/2configs/torrent.nix +++ b/makefu/2configs/torrent.nix @@ -20,7 +20,7 @@ in { download = { name = "download"; home = dl-dir; - uid = genid "download"; + uid = mkDefault (genid "download"); createHome = true; useDefaultShell = true; group = "download"; @@ -39,7 +39,7 @@ in { users.extraGroups = { download = { - gid = genid "download"; + gid = lib.mkDefault (genid "download"); members = [ config.krebs.build.user.name "download" |