Simplify networking configs

Introduces values.nix, a place to store information relevant across systems
This commit is contained in:
2023-01-17 10:27:18 +01:00
parent 4e93962f1c
commit e4cb215d39
5 changed files with 35 additions and 13 deletions

View File

@@ -1,4 +1,4 @@
{ config, pkgs, inputs, ... }:
{ config, lib, pkgs, inputs, values, ... }:
{
imports = [
@@ -8,6 +8,8 @@
networking.domain = "pvv.ntnu.no";
networking.useDHCP = false;
networking.search = [ "pvv.ntnu.no" "pvv.org" ];
networking.nameservers = lib.mkDefault [ "129.241.0.200" "129.241.0.201" ];
networking.defaultGateway = values.gateway;
services.resolved = {
enable = true;