From 2a34bf50e7e41554af6a74e1b29081924d22cac8 Mon Sep 17 00:00:00 2001
From: nin <nineinchnade@gmail.com>
Date: Thu, 19 Jan 2017 23:36:49 +0100
Subject: [PATCH 1/4] n 1 onondaga: fix build host

---
 nin/1systems/onondaga.nix | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nin/1systems/onondaga.nix b/nin/1systems/onondaga.nix
index f7518aa6b..b0810366a 100644
--- a/nin/1systems/onondaga.nix
+++ b/nin/1systems/onondaga.nix
@@ -11,7 +11,7 @@
     ../2configs/retiolum.nix
   ];
 
-  krebs.build.host = config.krebs.hosts.hiawatha;
+  krebs.build.host = config.krebs.hosts.onondaga;
 
   boot.loader.grub.enable = true;
   boot.loader.grub.version = 2;

From f017017d58da0da3a745aabee23d05f2278e204d Mon Sep 17 00:00:00 2001
From: nin <nineinchnade@gmail.com>
Date: Thu, 19 Jan 2017 23:37:26 +0100
Subject: [PATCH 2/4] n 1 onondaga: delete redundant hostname

---
 nin/1systems/onondaga.nix | 1 -
 1 file changed, 1 deletion(-)

diff --git a/nin/1systems/onondaga.nix b/nin/1systems/onondaga.nix
index b0810366a..92f316f66 100644
--- a/nin/1systems/onondaga.nix
+++ b/nin/1systems/onondaga.nix
@@ -21,7 +21,6 @@
   # Define on which hard drive you want to install Grub.
   boot.loader.grub.device = "/dev/sda";
 
-  networking.hostName = "onondaga";
   # networking.wireless.enable = true;  # Enables wireless support via wpa_supplicant.
 
   # Select internationalisation properties.

From 3991331352d85d44d174a90392c0fe3d5e5dee05 Mon Sep 17 00:00:00 2001
From: nin <nineinchnade@gmail.com>
Date: Fri, 20 Jan 2017 00:05:30 +0100
Subject: [PATCH 3/4] n 2: add weechat

---
 nin/2configs/weechat.nix | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 nin/2configs/weechat.nix

diff --git a/nin/2configs/weechat.nix b/nin/2configs/weechat.nix
new file mode 100644
index 000000000..6c0fb313e
--- /dev/null
+++ b/nin/2configs/weechat.nix
@@ -0,0 +1,21 @@
+{ config, lib, pkgs, ... }:
+
+let
+  inherit (import <stockholm/lib>) genid;
+in {
+  krebs.per-user.chat.packages = with pkgs; [
+    mosh
+    weechat
+    tmux
+  ];
+
+  users.extraUsers.chat = {
+    home = "/home/chat";
+    uid = genid "chat";
+    useDefaultShell = true;
+    createHome = true;
+    openssh.authorizedKeys.keys = [
+      config.krebs.users.nin.pubkey
+    ];
+  };
+}

From 531807ece890f1d857304a86837ae4bc1f27076e Mon Sep 17 00:00:00 2001
From: nin <nineinchnade@gmail.com>
Date: Fri, 20 Jan 2017 00:04:09 +0100
Subject: [PATCH 4/4] n 1 onondaga: import weechat.nix

---
 nin/1systems/onondaga.nix | 1 +
 1 file changed, 1 insertion(+)

diff --git a/nin/1systems/onondaga.nix b/nin/1systems/onondaga.nix
index 92f316f66..59f26c46b 100644
--- a/nin/1systems/onondaga.nix
+++ b/nin/1systems/onondaga.nix
@@ -9,6 +9,7 @@
     ../.
     <nixpkgs/nixos/modules/profiles/qemu-guest.nix>
     ../2configs/retiolum.nix
+    ../2configs/weechat.nix
   ];
 
   krebs.build.host = config.krebs.hosts.onondaga;