track ip file

This commit is contained in:
2025-04-17 13:24:40 -05:00
parent 872bcfb683
commit 1cd9b3ee94
4 changed files with 16 additions and 14 deletions
-1
View File
@@ -1,4 +1,3 @@
server-info.txt server-info.txt
nixos/age nixos/age
nixos/age/* nixos/age/*
ip-addresses.nix
+12 -12
View File
@@ -1,6 +1,9 @@
{ config, lib, pkgs, meta, ... }: { config, lib, pkgs, meta, ... }:
{
let
addresses = import (toString ./ip-addresses.nix);
in {
imports = [ ]; imports = [ ];
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];
@@ -18,7 +21,7 @@
systemd.user.services.mbsync.unitConfig.After = [ "sops-nix.service" ]; systemd.user.services.mbsync.unitConfig.After = [ "sops-nix.service" ];
environment.variable = { environment.variables = {
SECRETKEY = "${config.sops.secrets."clusterPassword".path}"; SECRETKEY = "${config.sops.secrets."clusterPassword".path}";
}; };
@@ -33,17 +36,14 @@
]; ];
}; };
networking.hostname = meta.hostname; networking.hostName = meta.hostname;
let networking.interfaces.eth0.ipv4.addresses = [
addresses = import ./ip-addresses.nix; {
in { address = addresses.${meta.hostname};
networking.interfaces.eth0.ipv4.addresses = [ prefixLength = 24;
{ }
address = addresses.${meta.hostname}; ];
prefixLength = 24;
}
];
# Set your time zone. # Set your time zone.
time.timeZone = "America/Chicago"; time.timeZone = "America/Chicago";
+1 -1
View File
@@ -8,7 +8,7 @@
[ (modulesPath + "/installer/scan/not-detected.nix") [ (modulesPath + "/installer/scan/not-detected.nix")
]; ];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "ehci_pci" "nvme" "usbhid" "sr_mod" ]; boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "ehci_pci" "nvme" "usbhid" "usb_storage" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ]; boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
+3
View File
@@ -0,0 +1,3 @@
{
"nixos-homelab-00": "192.168.1.183"
}