2015-08-23 01:28:41 +02:00
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
{ config, pkgs, ... }:
|
2017-04-17 13:11:32 +02:00
|
|
|
with import <stockholm/lib>;
|
2015-08-23 01:28:41 +02:00
|
|
|
|
|
|
|
{
|
|
|
|
imports =
|
2016-11-28 23:29:05 +01:00
|
|
|
[ # base
|
2017-07-15 19:01:02 +02:00
|
|
|
<stockholm/makefu>
|
|
|
|
<stockholm/makefu/2configs/main-laptop.nix>
|
|
|
|
<stockholm/makefu/2configs/extra-fonts.nix>
|
|
|
|
<stockholm/makefu/2configs/tools/all.nix>
|
|
|
|
<stockholm/makefu/2configs/laptop-backup.nix>
|
2017-09-04 10:12:30 +02:00
|
|
|
<stockholm/makefu/2configs/dnscrypt/client.nix>
|
2017-07-15 19:01:02 +02:00
|
|
|
<stockholm/makefu/2configs/avahi.nix>
|
2015-08-23 02:48:35 +02:00
|
|
|
|
2017-06-26 16:00:54 +02:00
|
|
|
# Debugging
|
2017-07-15 19:01:02 +02:00
|
|
|
# <stockholm/makefu/2configs/disable_v6.nix>
|
2015-08-24 11:06:10 +02:00
|
|
|
|
2017-06-26 16:00:54 +02:00
|
|
|
# Testing
|
2017-07-31 14:23:25 +02:00
|
|
|
# <stockholm/makefu/2configs/deployment/gitlab.nix>
|
2017-09-04 14:35:56 +02:00
|
|
|
# <stockholm/makefu/2configs/deployment/wiki-irc-bot>
|
2017-07-31 14:23:25 +02:00
|
|
|
|
2017-07-16 15:16:45 +02:00
|
|
|
# <stockholm/makefu/2configs/torrent.nix>
|
2017-07-15 19:01:02 +02:00
|
|
|
# <stockholm/makefu/2configs/deployment/dirctator.nix>
|
|
|
|
# <stockholm/makefu/2configs/vncserver.nix>
|
|
|
|
# <stockholm/makefu/2configs/deployment/led-fader>
|
|
|
|
# <stockholm/makefu/2configs/deployment/hound>
|
2015-08-24 11:06:10 +02:00
|
|
|
|
2016-11-28 23:29:05 +01:00
|
|
|
# Krebs
|
2017-07-15 19:01:02 +02:00
|
|
|
<stockholm/makefu/2configs/tinc/retiolum.nix>
|
2016-11-28 23:29:05 +01:00
|
|
|
|
|
|
|
# applications
|
2017-07-15 19:01:02 +02:00
|
|
|
<stockholm/makefu/2configs/exim-retiolum.nix>
|
|
|
|
<stockholm/makefu/2configs/mail-client.nix>
|
|
|
|
<stockholm/makefu/2configs/printer.nix>
|
|
|
|
<stockholm/makefu/2configs/task-client.nix>
|
2017-06-26 16:00:54 +02:00
|
|
|
|
|
|
|
# Virtualization
|
2017-07-31 14:23:25 +02:00
|
|
|
<stockholm/makefu/2configs/virtualisation/libvirt.nix>
|
|
|
|
<stockholm/makefu/2configs/virtualisation/docker.nix>
|
|
|
|
<stockholm/makefu/2configs/virtualisation/virtualbox.nix>
|
2017-08-16 12:14:00 +02:00
|
|
|
{
|
|
|
|
networking.firewall.allowedTCPPorts = [ 8080 ];
|
|
|
|
networking.nat = {
|
|
|
|
enable = true;
|
|
|
|
externalInterface = "wlp3s0";
|
|
|
|
internalInterfaces = [ "vboxnet0" ];
|
|
|
|
};
|
|
|
|
}
|
2015-08-23 01:28:41 +02:00
|
|
|
|
2017-06-26 16:00:54 +02:00
|
|
|
# Services
|
2017-07-15 19:01:02 +02:00
|
|
|
<stockholm/makefu/2configs/git/brain-retiolum.nix>
|
|
|
|
<stockholm/makefu/2configs/tor.nix>
|
2017-09-04 10:12:51 +02:00
|
|
|
<stockholm/makefu/2configs/vpn/vpngate.nix>
|
2017-07-15 19:01:02 +02:00
|
|
|
# <stockholm/makefu/2configs/buildbot-standalone.nix>
|
2017-10-07 11:29:04 +02:00
|
|
|
# <stockholm/makefu/2configs/remote-build/master.nix>
|
2015-08-31 19:56:47 +02:00
|
|
|
|
2017-06-26 16:00:54 +02:00
|
|
|
# Hardware
|
2017-07-15 19:01:02 +02:00
|
|
|
<stockholm/makefu/2configs/hw/tp-x230.nix>
|
|
|
|
<stockholm/makefu/2configs/hw/rtl8812au.nix>
|
|
|
|
<stockholm/makefu/2configs/hw/exfat-nofuse.nix>
|
|
|
|
<stockholm/makefu/2configs/hw/wwan.nix>
|
2017-11-14 15:36:50 +01:00
|
|
|
# <stockholm/makefu/2configs/hw/stk1160.nix>
|
2017-07-15 19:01:02 +02:00
|
|
|
# <stockholm/makefu/2configs/rad1o.nix>
|
2017-02-12 19:47:36 +01:00
|
|
|
|
2017-06-26 16:00:54 +02:00
|
|
|
# Filesystem
|
2017-07-15 19:01:02 +02:00
|
|
|
<stockholm/makefu/2configs/fs/sda-crypto-root-home.nix>
|
2016-06-02 14:44:11 +02:00
|
|
|
|
2017-07-01 01:13:28 +02:00
|
|
|
# Security
|
2017-07-15 19:01:02 +02:00
|
|
|
<stockholm/makefu/2configs/sshd-totp.nix>
|
2017-08-02 22:17:41 +02:00
|
|
|
{
|
|
|
|
programs.adb.enable = true;
|
|
|
|
}
|
2017-11-14 10:17:16 +01:00
|
|
|
# temporary
|
|
|
|
# <stockholm/makefu/2configs/lanparty/lancache.nix>
|
|
|
|
# <stockholm/makefu/2configs/lanparty/lancache-dns.nix>
|
|
|
|
# <stockholm/makefu/2configs/lanparty/samba.nix>
|
|
|
|
# <stockholm/makefu/2configs/lanparty/mumble-server.nix>
|
2017-07-01 01:13:28 +02:00
|
|
|
|
2015-08-23 01:28:41 +02:00
|
|
|
];
|
2017-03-01 15:51:48 +01:00
|
|
|
|
|
|
|
makefu.server.primary-itf = "wlp3s0";
|
2016-08-21 12:06:31 +02:00
|
|
|
makefu.full-populate = true;
|
2017-02-16 18:28:59 +01:00
|
|
|
makefu.umts.apn = "web.vodafone.de";
|
2016-09-02 12:50:07 +02:00
|
|
|
|
2016-10-22 12:47:22 +02:00
|
|
|
nixpkgs.config.allowUnfree = true;
|
2016-06-02 14:44:11 +02:00
|
|
|
|
|
|
|
|
2015-12-15 21:18:29 +01:00
|
|
|
|
2015-10-14 00:10:56 +02:00
|
|
|
# configure pulseAudio to provide a HDMI sink as well
|
2016-02-11 17:06:50 +01:00
|
|
|
networking.firewall.enable = true;
|
2016-10-19 12:31:13 +02:00
|
|
|
networking.firewall.allowedTCPPorts = [ 80 24800 26061 8000 3000 ];
|
2016-07-28 12:58:54 +02:00
|
|
|
networking.firewall.allowedUDPPorts = [ 665 26061 ];
|
2017-08-16 12:14:00 +02:00
|
|
|
networking.firewall.trustedInterfaces = [ "vboxnet0" ];
|
2015-08-23 01:28:41 +02:00
|
|
|
|
2016-07-28 12:58:54 +02:00
|
|
|
krebs.build.host = config.krebs.hosts.x;
|
2016-07-20 17:18:57 +02:00
|
|
|
|
|
|
|
krebs.tinc.retiolum.connectTo = [ "omo" "gum" "prism" ];
|
|
|
|
|
2016-06-02 14:44:11 +02:00
|
|
|
networking.extraHosts = ''
|
|
|
|
192.168.1.11 omo.local
|
|
|
|
'';
|
2016-06-12 19:44:54 +02:00
|
|
|
# hard dependency because otherwise the device will not be unlocked
|
|
|
|
boot.initrd.luks.devices = [ { name = "luksroot"; device = "/dev/sda2"; allowDiscards=true; }];
|
2017-11-14 15:36:50 +01:00
|
|
|
|
|
|
|
nix.package = pkgs.nixUnstable;
|
|
|
|
environment.systemPackages = [ pkgs.passwdqc-utils pkgs.nixUnstable ];
|
2015-08-23 01:28:41 +02:00
|
|
|
}
|