Snippets

Robin Stumm Hydra

Created by Robin Stumm

File configuration.nix Added

  • Ignore whitespace
  • Hide word diff
+{ config, pkgs, ... }:
+
+{
+  imports = [ ./hardware-configuration.nix ];
+
+  boot.loader.grub = {
+    enable = true;
+    version = 2;
+    device = "/dev/sda";
+  };
+
+  networking = {
+    hostName = "dermetfan-hydra";
+
+    firewall.allowedTCPPorts = [ 3000 ];
+  };
+
+  i18n.consoleUseXkbConfig = true;
+
+  time.timeZone = "Europe/Berlin";
+
+  services = {
+    openssh.enable = true;
+
+    xserver = {
+      layout = "us";
+      xkbVariant = "norman";
+      xkbOptions = "compose:lwin,compose:rwin,eurosign:e";
+    };
+
+    hydra = {
+      enable = true;
+      hydraURL = https://hydra.dermetfan.net/;
+      notificationSender = "hydra@dermetfan.net";
+      buildMachinesFiles = [];
+    };
+
+    ddclient = {
+      enable = true;
+      server = "dynupdate.no-ip.com";
+      username = "dermetfan";
+      password = builtins.readFile /etc/ddns-pass;
+      domain = "dermetfan-hydra.ddns.net";
+    };
+  };
+
+  users = {
+    mutableUsers = false;
+    
+    users = {
+      root = {
+        isSystemUser = true;
+        hashedPassword = "$6$DldeafJwTCM2QA$1z4pdpJEm9wD7y4iFSBIoWtLIm36UEGnQeN0yqcVZ/jBT7pVshkWdsATQf6oBEyOECJMEw5yeuk.j04aSYI8N1";
+      };
+
+      dermetfan = {
+        isNormalUser = true;
+        hashedPassword = "$6$dermetfan$TDnNIlkKVSIUENPQxm6knvwguWBqfuLt4uTfzSl9gpZb1fQu86VIkvDzZ6dR02dt3c0QFwH4TOMoREMCDS7yt.";
+        extraGroups = [
+          "wheel"
+        ];
+      };
+    };
+  };
+
+  system.stateVersion = "16.09";
+}
HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.