Nope, was dumb, maybe. - Changed the local variable calls.

This commit is contained in:
Root User 2026-02-06 21:56:29 +01:00
parent 25b834e413
commit e599efe0c8
Signed by: root
GPG key ID: 087F0A95E5766D72
3 changed files with 32 additions and 48 deletions

View file

@ -4,44 +4,42 @@
lib, lib,
... ...
}: { }: {
config = { # Some programs need SUID wrappers, can be configured further or are
# Some programs need SUID wrappers, can be configured further or are # started in user sessions.
# started in user sessions. # programs.mtr.enable = true;
# programs.mtr.enable = true; # programs.gnupg.agent = {
# programs.gnupg.agent = { # enable = true;
# enable = true; # enableSSHSupport = true;
# enableSSHSupport = true; # };
# };
# List services that you want to enable: # List services that you want to enable:
# Open ports in the firewall. # Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ]; # networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ]; # networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether. # Or disable the firewall altogether.
# networking.firewall.enable = false; # networking.firewall.enable = false;
services.resolved.enable = false; services.resolved.enable = false;
# Use this clean static network configuration instead: # Use this clean static network configuration instead:
networking.useDHCP = false; networking.useDHCP = false;
networking.networkmanager.enable = false; # Disable NetworkManager networking.networkmanager.enable = false; # Disable NetworkManager
networking.interfaces.ens18 = { networking.interfaces.ens18 = {
ipv4.addresses = [ ipv4.addresses = [
{ {
address = config.local.address or "10.1.1.100"; address = config.local.address or "10.1.1.100";
prefixLength = 24; prefixLength = 24;
} }
]; ];
};
networking.defaultGateway = {
address = "10.1.1.1";
interface = "ens18";
};
# Explicitly set DNS
networking.nameservers = ["10.1.1.2"]; # PiHole DNS
}; };
networking.defaultGateway = {
address = "10.1.1.1";
interface = "ens18";
};
# Explicitly set DNS
networking.nameservers = ["10.1.1.2"]; # PiHole DNS
} }

View file

@ -8,13 +8,6 @@
cfg = config.services.forgejo; cfg = config.services.forgejo;
srv = cfg.settings.server; srv = cfg.settings.server;
in { in {
options.local = {
hostname = lib.mkOption {type = lib.types.str;};
username = lib.mkOption {type = lib.types.str;};
userDescription = lib.mkOption {type = lib.types.str;};
address = lib.mkOption {type = lib.types.str;};
};
config = { config = {
local.hostname = "forgejoprg"; local.hostname = "forgejoprg";
local.username = "forgejoprg"; local.username = "forgejoprg";

View file

@ -4,13 +4,6 @@
lib, lib,
... ...
}: { }: {
options.local = {
hostname = lib.mkOption {type = lib.types.str;};
username = lib.mkOption {type = lib.types.str;};
userDescription = lib.mkOption {type = lib.types.str;};
address = lib.mkOption {type = lib.types.str;};
};
config = { config = {
local.hostname = "nixos-traefik"; local.hostname = "nixos-traefik";
local.username = "traefikprg"; local.username = "traefikprg";