Skip to content
Snippets Groups Projects
Commit f7c596a9 authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

non-working second node

This is a bricked machine in the data center where running NixOS is hard.
parent 79305788
No related branches found
No related tags found
1 merge request!2Testing and production grids
...@@ -7,6 +7,7 @@ let ...@@ -7,6 +7,7 @@ let
url = "https://github.com/NixOS/nixpkgs/archive/3c83ad6ac13b67101cc3e2e07781963a010c1624.tar.gz"; url = "https://github.com/NixOS/nixpkgs/archive/3c83ad6ac13b67101cc3e2e07781963a010c1624.tar.gz";
sha256 = "0cdq342wrkvkyccygpp1gvwp7hhqg68hljjwld4vjixm901ayy14"; sha256 = "0cdq342wrkvkyccygpp1gvwp7hhqg68hljjwld4vjixm901ayy14";
}) {}; }) {};
publicStoragePort = 8898;
in in
{ {
network = { network = {
...@@ -16,6 +17,11 @@ in ...@@ -16,6 +17,11 @@ in
"staging000" = import ./staging000.nix { "staging000" = import ./staging000.nix {
publicIPv4 = "3.123.26.90"; publicIPv4 = "3.123.26.90";
publicStoragePort = 8898; inherit publicStoragePort;
};
"staging001" = import ./staging001.nix {
publicIPv4 = "209.95.51.251";
inherit publicStoragePort;
}; };
} }
{ config, lib, pkgs, ... }:
{
imports =
[ <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "sd_mod" ];
boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/cde5f64f-a179-42f4-808f-d1f43584db23";
fsType = "ext4";
};
swapDevices =
[ { device = "/dev/disk/by-uuid/9084108f-592b-4a13-b833-4dd41d2709d3"; }
];
nix.maxJobs = lib.mkDefault 8;
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
}
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./staging001-hardware.nix
];
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
boot.loader.grub.device = "/dev/disk/by-id/wwn-0x50000396cb7049cb";
# Let me in to do subsequent configuration.
networking.firewall.enable = false;
services.openssh.enable = true;
users.users.root.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN4GenAY/YLGuf1WoMXyyVa3S9i4JLQ0AG+pt7nvcLlQ exarkun@baryon"
];
# networking.hostName = "staging001";
# networking.domain = "storage.privatestorage-staging.com";
# Provide the static network configuration.
networking.interfaces = {
enp2s0f0.ipv4.addresses = [
{ address = "209.95.51.251"; prefixLength = 24; }
];
};
networking.defaultGateway = {
address = "209.95.51.1";
interface = "enp2s0f0";
};
# This value determines the NixOS release with which your system is to be
# compatible, in order to avoid breaking some software such as database
# servers. You should change this only after NixOS release notes say you
# should.
system.stateVersion = "19.03"; # Did you read the comment?
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment