Simplify networking configs
Introduces values.nix, a place to store information relevant across systems
This commit is contained in:
4
base.nix
4
base.nix
@@ -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;
|
||||
|
Reference in New Issue
Block a user