diff options
author | lassulus <lass@lassul.us> | 2017-01-21 18:41:43 +0100 |
---|---|---|
committer | lassulus <lass@lassul.us> | 2017-01-21 18:41:43 +0100 |
commit | 0ee40effc6a7b2d3b53b06acd3dc5b556845ea70 (patch) | |
tree | 70864c95df963a8d25637c15749622c1ce9297b4 | |
parent | aff9cd8e0806559e2d224256056440cb3d0ff2a3 (diff) | |
parent | 1ef1b7002cd3cef3316b099d891f865f054ad075 (diff) |
Merge remote-tracking branch 'prism/newest'
-rw-r--r-- | nin/1systems/onondaga.nix | 4 | ||||
-rw-r--r-- | nin/2configs/weechat.nix | 21 |
2 files changed, 23 insertions, 2 deletions
diff --git a/nin/1systems/onondaga.nix b/nin/1systems/onondaga.nix index f7518aa..59f26c4 100644 --- a/nin/1systems/onondaga.nix +++ b/nin/1systems/onondaga.nix @@ -9,9 +9,10 @@ ../. <nixpkgs/nixos/modules/profiles/qemu-guest.nix> ../2configs/retiolum.nix + ../2configs/weechat.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; @@ -21,7 +22,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. diff --git a/nin/2configs/weechat.nix b/nin/2configs/weechat.nix new file mode 100644 index 0000000..6c0fb31 --- /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 + ]; + }; +} |