2015-12-14 16:56:50 +00:00
|
|
|
{ lib, config, pkgs, ... }:
|
2016-01-18 11:54:03 +00:00
|
|
|
{
|
2015-12-14 13:33:06 +00:00
|
|
|
krebs.build.host = config.krebs.hosts.vbob;
|
2016-04-17 00:03:15 +00:00
|
|
|
makefu.awesome.modkey = "Mod1";
|
2015-12-14 13:33:06 +00:00
|
|
|
imports =
|
|
|
|
[ # Include the results of the hardware scan.
|
2016-02-15 15:27:11 +00:00
|
|
|
../.
|
2016-07-15 06:35:27 +00:00
|
|
|
(toString <nixpkgs/nixos/modules/virtualisation/virtualbox-image.nix>)
|
|
|
|
(toString <nixpkgs/nixos/modules/virtualisation/virtualbox-guest.nix>)
|
2015-12-14 13:33:06 +00:00
|
|
|
../2configs/main-laptop.nix #< base-gui
|
2016-07-18 16:57:36 +00:00
|
|
|
<secrets/extra-hosts.nix>
|
2015-12-14 13:33:06 +00:00
|
|
|
|
|
|
|
# environment
|
2016-07-20 15:18:57 +00:00
|
|
|
../2configs/tinc/retiolum.nix
|
2015-12-14 16:56:50 +00:00
|
|
|
|
2015-12-14 13:33:06 +00:00
|
|
|
];
|
2016-07-15 06:35:27 +00:00
|
|
|
# workaround for https://github.com/NixOS/nixpkgs/issues/16641
|
|
|
|
services.xserver.videoDrivers = lib.mkOverride 45 [ "virtualbox" "modesetting" ];
|
2015-12-16 13:30:21 +00:00
|
|
|
|
2016-07-15 06:35:27 +00:00
|
|
|
nixpkgs.config.allowUnfree = true;
|
2015-12-16 11:23:55 +00:00
|
|
|
fileSystems."/nix" = {
|
|
|
|
device ="/dev/disk/by-label/nixstore";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
2016-07-15 06:35:27 +00:00
|
|
|
|
2015-12-14 16:56:50 +00:00
|
|
|
# allow vbob to deploy self
|
|
|
|
users.extraUsers = {
|
|
|
|
root = {
|
|
|
|
openssh.authorizedKeys.keys = [ config.krebs.users.makefu-vbob.pubkey ];
|
|
|
|
};
|
|
|
|
};
|
2016-07-18 16:57:36 +00:00
|
|
|
|
|
|
|
environment.shellAliases = {
|
|
|
|
forti = "cat ~/vpn/pw.txt | xclip; sudo forticlientsslvpn";
|
|
|
|
};
|
|
|
|
# TODO: for forticleintsslpn
|
|
|
|
# ln -s /r/current-system/sw/bin/pppd /usr/sbin/pppd
|
|
|
|
# ln -s /r/current-system/sw/bin/tail /usr/bin/tail
|
2015-12-14 13:33:06 +00:00
|
|
|
environment.systemPackages = with pkgs;[
|
2016-07-18 16:57:36 +00:00
|
|
|
fortclientsslvpn ppp xclip
|
2015-12-14 13:33:06 +00:00
|
|
|
get
|
2016-01-18 11:54:03 +00:00
|
|
|
logstash
|
2016-05-02 14:02:15 +00:00
|
|
|
docker
|
|
|
|
devpi-web
|
|
|
|
devpi-client
|
2015-12-14 16:56:50 +00:00
|
|
|
];
|
2016-05-02 14:02:15 +00:00
|
|
|
# virtualisation.docker.enable = true;
|
|
|
|
|
2015-12-14 13:33:06 +00:00
|
|
|
|
|
|
|
networking.firewall.allowedTCPPorts = [
|
|
|
|
25
|
|
|
|
80
|
2015-12-16 16:53:35 +00:00
|
|
|
8010
|
2015-12-14 13:33:06 +00:00
|
|
|
];
|
|
|
|
|
2016-07-15 06:35:27 +00:00
|
|
|
virtualisation.docker.enable = false;
|
2016-05-02 14:02:15 +00:00
|
|
|
|
2015-12-14 13:33:06 +00:00
|
|
|
fileSystems."/media/share" = {
|
|
|
|
fsType = "vboxsf";
|
|
|
|
device = "share";
|
2016-04-16 18:56:21 +00:00
|
|
|
options = [ "rw" "uid=9001" "gid=9001" ];
|
2015-12-14 13:33:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|