1
0
Fork 0
mirror of https://github.com/mdlayher/homelab.git synced 2024-12-14 11:47:32 +00:00

nixos/routnerr-2: regenerate hardware config and nixfmt

Signed-off-by: Matt Layher <mdlayher@gmail.com>
This commit is contained in:
Matt Layher 2022-01-31 21:23:06 -05:00
parent 41f5c9e3f8
commit 8292dfefef
No known key found for this signature in database
GPG key ID: 77BFE531397EDE94
3 changed files with 7 additions and 8 deletions

View file

@ -122,9 +122,7 @@ in {
permitRootLogin = "no"; permitRootLogin = "no";
}; };
prometheus.exporters = { prometheus.exporters = { modemmanager.enable = true; };
modemmanager.enable = true;
};
tftpd = { tftpd = {
enable = true; enable = true;

View file

@ -37,10 +37,10 @@ in {
preference = ifi.preference; preference = ifi.preference;
# Advertise all /64 prefixes on the interface. # Advertise all /64 prefixes on the interface.
prefix = [{}]; prefix = [ { } ];
# Automatically use the appropriate interface address as a DNS server. # Automatically use the appropriate interface address as a DNS server.
rdnss = [{}]; rdnss = [ { } ];
} // ( } // (
# Configure DNS search on some trusted LANs, or omit otherwise. # Configure DNS search on some trusted LANs, or omit otherwise.
if ifi.internal_dns then { if ifi.internal_dns then {

View file

@ -1,10 +1,10 @@
# Do not modify this file! It was generated by nixos-generate-config # Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes # and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead. # to /etc/nixos/configuration.nix instead.
{ lib, ... }: { config, lib, pkgs, modulesPath, ... }:
{ {
imports = [ <nixpkgs/nixos/modules/installer/scan/not-detected.nix> ]; imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules = boot.initrd.availableKernelModules =
[ "xhci_pci" "ahci" "ehci_pci" "sd_mod" "sdhci_pci" ]; [ "xhci_pci" "ahci" "ehci_pci" "sd_mod" "sdhci_pci" ];
@ -20,5 +20,6 @@
swapDevices = swapDevices =
[{ device = "/dev/disk/by-uuid/56b049fa-6f09-4bc7-97e3-0c790cfa354a"; }]; [{ device = "/dev/disk/by-uuid/56b049fa-6f09-4bc7-97e3-0c790cfa354a"; }];
nix.maxJobs = lib.mkDefault 4; hardware.cpu.amd.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
} }