track ip file
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
server-info.txt
|
server-info.txt
|
||||||
nixos/age
|
nixos/age
|
||||||
nixos/age/*
|
nixos/age/*
|
||||||
ip-addresses.nix
|
|
||||||
|
|||||||
@@ -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,11 +36,8 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.hostname = meta.hostname;
|
networking.hostName = meta.hostname;
|
||||||
|
|
||||||
let
|
|
||||||
addresses = import ./ip-addresses.nix;
|
|
||||||
in {
|
|
||||||
networking.interfaces.eth0.ipv4.addresses = [
|
networking.interfaces.eth0.ipv4.addresses = [
|
||||||
{
|
{
|
||||||
address = addresses.${meta.hostname};
|
address = addresses.${meta.hostname};
|
||||||
|
|||||||
@@ -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 = [ ];
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"nixos-homelab-00": "192.168.1.183"
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user