2015-12-14 17:56:50 +01:00
|
|
|
{ lib, config, pkgs, ... }:
|
2016-01-18 12:54:03 +01:00
|
|
|
{
|
2015-12-14 14:33:06 +01:00
|
|
|
krebs.build.host = config.krebs.hosts.vbob;
|
2016-04-17 02:03:15 +02:00
|
|
|
makefu.awesome.modkey = "Mod1";
|
2015-12-14 14:33:06 +01:00
|
|
|
imports =
|
|
|
|
[ # Include the results of the hardware scan.
|
2017-07-15 19:01:02 +02:00
|
|
|
<stockholm/makefu>
|
2016-07-15 08:35:27 +02:00
|
|
|
(toString <nixpkgs/nixos/modules/virtualisation/virtualbox-image.nix>)
|
|
|
|
(toString <nixpkgs/nixos/modules/virtualisation/virtualbox-guest.nix>)
|
2017-07-15 23:19:06 +02:00
|
|
|
# base gui
|
|
|
|
<stockholm/makefu/2configs/main-laptop.nix>
|
|
|
|
|
|
|
|
# security
|
2017-07-15 19:01:02 +02:00
|
|
|
<stockholm/makefu/2configs/sshd-totp.nix>
|
2015-12-14 14:33:06 +01:00
|
|
|
|
2017-06-29 00:14:54 +02:00
|
|
|
# Tools
|
2017-07-15 19:01:02 +02:00
|
|
|
<stockholm/makefu/2configs/tools/core.nix>
|
|
|
|
<stockholm/makefu/2configs/tools/core-gui.nix>
|
|
|
|
<stockholm/makefu/2configs/tools/dev.nix>
|
|
|
|
<stockholm/makefu/2configs/tools/extra-gui.nix>
|
|
|
|
<stockholm/makefu/2configs/tools/sec.nix>
|
2017-06-29 00:14:54 +02:00
|
|
|
|
2015-12-14 14:33:06 +01:00
|
|
|
# environment
|
2017-07-15 19:01:02 +02:00
|
|
|
<stockholm/makefu/2configs/tinc/retiolum.nix>
|
2015-12-14 17:56:50 +01:00
|
|
|
|
2017-07-15 19:01:02 +02:00
|
|
|
<stockholm/makefu/2configs/audio/jack-on-pulse.nix>
|
|
|
|
<stockholm/makefu/2configs/audio/realtime-audio.nix>
|
2017-06-29 00:14:54 +02:00
|
|
|
|
2015-12-14 14:33:06 +01:00
|
|
|
];
|
2016-11-14 15:59:54 +01:00
|
|
|
networking.extraHosts = import (toString <secrets/extra-hosts.nix>);
|
2015-12-16 14:30:21 +01:00
|
|
|
|
2016-07-15 08:35:27 +02:00
|
|
|
nixpkgs.config.allowUnfree = true;
|
2015-12-16 12:23:55 +01:00
|
|
|
fileSystems."/nix" = {
|
|
|
|
device ="/dev/disk/by-label/nixstore";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
2016-07-15 08:35:27 +02:00
|
|
|
|
2015-12-14 17:56:50 +01:00
|
|
|
# allow vbob to deploy self
|
|
|
|
users.extraUsers = {
|
|
|
|
root = {
|
|
|
|
openssh.authorizedKeys.keys = [ config.krebs.users.makefu-vbob.pubkey ];
|
|
|
|
};
|
|
|
|
};
|
2016-07-18 18:57:36 +02: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 14:33:06 +01:00
|
|
|
environment.systemPackages = with pkgs;[
|
2016-07-18 18:57:36 +02:00
|
|
|
fortclientsslvpn ppp xclip
|
2015-12-14 14:33:06 +01:00
|
|
|
get
|
2016-01-18 12:54:03 +01:00
|
|
|
logstash
|
2016-10-22 14:21:22 +02:00
|
|
|
# docker
|
2016-11-14 15:59:54 +01:00
|
|
|
#devpi-web
|
|
|
|
#devpi-client
|
|
|
|
debmirror
|
|
|
|
ansible
|
2015-12-14 17:56:50 +01:00
|
|
|
];
|
2016-05-02 16:02:15 +02:00
|
|
|
# virtualisation.docker.enable = true;
|
|
|
|
|
2015-12-14 14:33:06 +01:00
|
|
|
|
|
|
|
networking.firewall.allowedTCPPorts = [
|
|
|
|
25
|
|
|
|
80
|
2015-12-16 17:53:35 +01:00
|
|
|
8010
|
2015-12-14 14:33:06 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
fileSystems."/media/share" = {
|
|
|
|
fsType = "vboxsf";
|
|
|
|
device = "share";
|
2016-04-16 20:56:21 +02:00
|
|
|
options = [ "rw" "uid=9001" "gid=9001" ];
|
2015-12-14 14:33:06 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|