diff --git a/configuration/hosts/cdn/node-2/configuration.nix b/configuration/hosts/cdn/node-2/configuration.nix new file mode 100644 index 0000000..f2aa9f9 --- /dev/null +++ b/configuration/hosts/cdn/node-2/configuration.nix @@ -0,0 +1,26 @@ +{ config, pkgs, ... }: + +{ + imports = + [ # Include the results of the hardware scan. + ./hardware-config.nix + ../../../common + ../../../server/cdn-node.nix + ]; + + boot.loader.grub.enable = true; + boot.loader.grub.version = 2; + boot.loader.grub.devices = [ "/dev/sda" ]; + + networking.interfaces.ens3.useDHCP = true; + networking.hostName = "cdn-node-2"; + + + # This value determines the NixOS release from which the default + # settings for stateful data, like file locations and database versions + # on your system were taken. It‘s perfectly fine and recommended to leave + # this value at the release version of the first install of this system. + # Before changing this value read the documentation for this option + # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). + system.stateVersion = "20.03"; # Did you read the comment? +} diff --git a/configuration/hosts/cdn/node-2/hardware-config.nix b/configuration/hosts/cdn/node-2/hardware-config.nix new file mode 100644 index 0000000..25858d2 --- /dev/null +++ b/configuration/hosts/cdn/node-2/hardware-config.nix @@ -0,0 +1,25 @@ +# Do not modify this file! It was generated by ‘nixos-generate-config’ +# and may be overwritten by future invocations. Please make changes +# to /etc/nixos/configuration.nix instead. +{ config, lib, pkgs, ... }: + +{ + imports = + [ + ]; + + boot.initrd.availableKernelModules = [ "ata_piix" "virtio_pci" "xhci_pci" "sd_mod" "sr_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/a92ff89e-e1c2-4fda-8711-1be7257f6470"; + fsType = "ext4"; + }; + + swapDevices = [ ]; + + nix.maxJobs = lib.mkDefault 1; +} + diff --git a/configuration/hosts/default.nix b/configuration/hosts/default.nix index c92f47d..48c356f 100644 --- a/configuration/hosts/default.nix +++ b/configuration/hosts/default.nix @@ -8,6 +8,10 @@ let ssh.host = "nixda.hacc.space"; groups = [ "server" "desktop" "hacc" "live" ]; }; + "cdn/node-2" = { + ssh.host = "cdn-node-2.live.hacc.media"; + groups = [ "server" "hacc" "live" "livecdn" "livecdn-node" ]; + }; "cdn/node-1" = { ssh.host = "cdn-node-1.live.hacc.media"; groups = [ "server" "hacc" "live" "livecdn" "livecdn-node" ];