interfaces and package config externalized, also tmux added and version variable

This commit is contained in:
2025-07-16 20:33:59 +02:00
parent 80d8003e4d
commit 47f7bc25b7
6 changed files with 49 additions and 32 deletions

View File

@@ -1,10 +1,10 @@
{ config, pkgs, ... }: {
{ config, lib, pkgs, ... }: {
services.keepalived = {
enable = true;
vrrpInstances = {
V4 = {
priority = config.vars.ka_priority;
interface = "enp1s0";
interface = lib.head config.vars.interfaces;
virtualRouterId = 69;
virtualIps = [
{
@@ -14,7 +14,7 @@
};
V6 = {
priority = config.vars.ka_priority;
interface = "enp1s0";
interface = lib.head config.vars.interfaces;
virtualRouterId = 96;
virtualIps = [
{
@@ -25,7 +25,3 @@
};
};
}