summaryrefslogtreecommitdiffstats
path: root/makefu/1systems/darth
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2017-07-16 12:05:35 +0200
committerlassulus <lassulus@lassul.us>2017-07-16 12:05:35 +0200
commitcd7c0971ccc9023f63feb75d4abe514fdc03a079 (patch)
tree704c47afe8cd43a36f36f251cd53b340ec5ec4da /makefu/1systems/darth
parentb91a4c4b0f0958cdc5e7c0d60523326083f275d4 (diff)
parent0e0ad14c373a038e6d347017f5efe172c7409793 (diff)
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'makefu/1systems/darth')
-rw-r--r--makefu/1systems/darth/config.nix80
-rw-r--r--makefu/1systems/darth/source.nix3
2 files changed, 83 insertions, 0 deletions
diff --git a/makefu/1systems/darth/config.nix b/makefu/1systems/darth/config.nix
new file mode 100644
index 000000000..c8d17ca70
--- /dev/null
+++ b/makefu/1systems/darth/config.nix
@@ -0,0 +1,80 @@
+{ config, pkgs, lib, ... }:
+
+with import <stockholm/lib>;
+let
+ byid = dev: "/dev/disk/by-id/" + dev;
+ rootDisk = byid "ata-ADATA_SSD_S599_64GB_10460000000000000039";
+ auxDisk = byid "ata-HGST_HTS721010A9E630_JR10006PH3A02F";
+ dataPartition = auxDisk + "-part1";
+
+ allDisks = [ rootDisk ]; # auxDisk
+in {
+ imports = [
+ <stockholm/makefu>
+ <stockholm/makefu/2configs/fs/single-partition-ext4.nix>
+ <stockholm/makefu/2configs/zsh-user.nix>
+ <stockholm/makefu/2configs/smart-monitor.nix>
+ <stockholm/makefu/2configs/exim-retiolum.nix>
+ <stockholm/makefu/2configs/virtualization.nix>
+
+ <stockholm/makefu/2configs/tinc/retiolum.nix>
+ <stockholm/makefu/2configs/temp-share-samba.nix>
+ ];
+ services.samba.shares = {
+ isos = {
+ path = "/data/isos/";
+ "read only" = "yes";
+ browseable = "yes";
+ "guest ok" = "yes";
+ };
+ };
+ services.tinc.networks.siem = {
+ name = "sdarth";
+ extraConfig = "ConnectTo = sjump";
+ };
+
+ makefu.forward-journal = {
+ enable = true;
+ src = "10.8.10.2";
+ dst = "10.8.10.6";
+ };
+
+ #networking.firewall.enable = false;
+
+ boot.kernelModules = [ "coretemp" "f71882fg" ];
+ hardware.enableAllFirmware = true;
+ nixpkgs.config.allowUnfree = true;
+ networking = {
+ wireless.enable = true;
+ firewall = {
+ allowPing = true;
+ logRefusedConnections = false;
+ trustedInterfaces = [ "eno1" ];
+ allowedUDPPorts = [ 80 655 1655 67 ];
+ allowedTCPPorts = [ 80 655 1655 ];
+ };
+ # fallback connection to the internal virtual network
+ interfaces.virbr3.ip4 = [{
+ address = "10.8.8.2";
+ prefixLength = 24;
+ }];
+ };
+
+ # TODO smartd omo darth gum all-in-one
+ services.smartd.devices = builtins.map (x: { device = x; }) allDisks;
+ zramSwap.enable = true;
+
+ #fileSystems."/data" = {
+ # device = dataPartition;
+ # fsType = "ext4";
+ #};
+
+ boot.loader.grub.device = rootDisk;
+
+ users.users.root.openssh.authorizedKeys.keys = [
+ config.krebs.users.makefu-omo.pubkey
+ config.krebs.users.makefu-vbob.pubkey
+ ];
+
+ krebs.build.host = config.krebs.hosts.darth;
+}
diff --git a/makefu/1systems/darth/source.nix b/makefu/1systems/darth/source.nix
new file mode 100644
index 000000000..b13b6c603
--- /dev/null
+++ b/makefu/1systems/darth/source.nix
@@ -0,0 +1,3 @@
+import <stockholm/makefu/source.nix> {
+ name="darth";
+}