mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 05:36:59 +01:00
Add new storage1 deploy-rs config
This commit is contained in:
parent
f95db22474
commit
09d2ac3f05
5 changed files with 387 additions and 0 deletions
53
hardware/hetzner-dedicated-storage1.nix
Normal file
53
hardware/hetzner-dedicated-storage1.nix
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
{ modulesPath, config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "ahci" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
||||
boot.initrd.mdadmConf = config.environment.etc."mdadm.conf".text;
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
boot.loader.systemd-boot.enable = false;
|
||||
boot.loader.grub = {
|
||||
enable = true;
|
||||
efiSupport = false;
|
||||
devices = [ "/dev/sda" "/dev/sdb" "/dev/sdc" "/dev/sdd" ];
|
||||
};
|
||||
|
||||
fileSystems."/" =
|
||||
{
|
||||
device = "/dev/disk/by-uuid/e5c27021-ce34-4680-ba6f-233070cb944f";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
environment.etc."mdadm.conf".text = ''
|
||||
HOMEHOST <ignore>
|
||||
'';
|
||||
|
||||
nix.maxJobs = lib.mkDefault 8;
|
||||
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
|
||||
|
||||
|
||||
networking.useDHCP = false;
|
||||
networking.interfaces."enp2s0".ipv4.addresses = [
|
||||
{
|
||||
address = "78.46.96.243";
|
||||
prefixLength = 24;
|
||||
}
|
||||
];
|
||||
networking.interfaces."enp2s0".ipv6.addresses = [
|
||||
{
|
||||
address = "2a01:4f8:120:8233::1";
|
||||
prefixLength = 64;
|
||||
}
|
||||
];
|
||||
networking.defaultGateway = "78.46.96.225";
|
||||
networking.defaultGateway6 = { address = "fe80::1"; interface = "enp2s0"; };
|
||||
networking.nameservers = [ "8.8.8.8" ];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue