Add media1 host
Some checks failed
Run nix flake check / flake-check (push) Has been cancelled

This commit is contained in:
Torjus Håkestad 2025-02-12 22:44:30 +01:00
parent b8d058d23e
commit 5b64f40412
Signed by: torjus
SSH Key Fingerprint: SHA256:KjAds8wHfD2mBYK2H815s/+ABcSdcIHUndwHEdSxml4
3 changed files with 24 additions and 48 deletions

View File

@ -42,7 +42,7 @@
systemd.network.networks."enp2s0" = { systemd.network.networks."enp2s0" = {
matchConfig.Name = "enp2s0"; matchConfig.Name = "enp2s0";
address = [ address = [
"10.69.31.49/24" "10.69.12.82/24"
]; ];
routes = [ routes = [
{ Gateway = "10.69.31.1"; } { Gateway = "10.69.31.1"; }

View File

@ -1,58 +1,33 @@
# Do not modify this file! It was generated by nixos-generate-config { config, lib, pkgs, modulesPath, ... }:
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{
config,
lib,
pkgs,
modulesPath,
...
}:
{ {
imports = [ imports =
(modulesPath + "/installer/scan/not-detected.nix") [
]; (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" "rtsx_usb_sdmmc" ];
"xhci_pci"
"nvme"
"ahci"
"usbhid"
"usb_storage"
"sd_mod"
"rtsx_usb_sdmmc"
];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ]; boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = { fileSystems."/" =
device = "/dev/disk/by-uuid/faa60038-b3a4-448a-8909-49857818c955"; {
fsType = "xfs"; device = "/dev/disk/by-uuid/3e7c311c-b1a3-4be7-b8bf-e497cba64302";
}; fsType = "btrfs";
};
fileSystems."/boot" = { fileSystems."/boot" =
device = "/dev/disk/by-uuid/7A94-A91C"; {
fsType = "vfat"; device = "/dev/disk/by-uuid/F0D7-E5C1";
options = [ fsType = "vfat";
"fmask=0077" options = [ "fmask=0022" "dmask=0022" ];
"dmask=0077" };
];
};
swapDevices = [ swapDevices =
{ device = "/dev/disk/by-uuid/f7a4f85e-0b4b-492d-a611-f50d2b915c2c"; } [{ device = "/dev/disk/by-uuid/1a06a36f-da61-4d36-b94e-b852836c328a"; }];
];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp2s0.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp3s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
} }

View File

@ -1,7 +1,7 @@
$ORIGIN home.2rjus.net. $ORIGIN home.2rjus.net.
$TTL 1800 $TTL 1800
@ IN SOA ns1.home.2rjus.net. admin.test.2rjus.net. ( @ IN SOA ns1.home.2rjus.net. admin.test.2rjus.net. (
2051 ; serial number 2052 ; serial number
3600 ; refresh 3600 ; refresh
900 ; retry 900 ; retry
1209600 ; expire 1209600 ; expire
@ -40,10 +40,11 @@ restic IN A 10.69.12.52
radarr-jail IN A 10.69.12.53 radarr-jail IN A 10.69.12.53
sonarr-jail IN A 10.69.12.54 sonarr-jail IN A 10.69.12.54
bazarr IN A 10.69.12.55 bazarr IN A 10.69.12.55
mpnzb IN A 10.69.12.57 mpnzb IN A 10.69.12.57
pve1 IN A 10.69.12.75 pve1 IN A 10.69.12.75
inc1 IN A 10.69.12.80 inc1 IN A 10.69.12.80
inc2 IN A 10.69.12.81 inc2 IN A 10.69.12.81
media1 IN A 10.69.12.82
; 13_SVC ; 13_SVC
ns1 IN A 10.69.13.5 ns1 IN A 10.69.13.5