From f85d8c3ef7e564ad6e58add410d43170d5f48ebc Mon Sep 17 00:00:00 2001 From: nostoromo root Date: Mon, 23 Nov 2020 14:22:51 -0800 Subject: [PATCH] Trying to add lisp libraries --- hosts/nostromo.nix | 36 +++++++++++++++++++++++++++++++++--- packages/local.nix | 15 +++++++++++++-- 2 files changed, 46 insertions(+), 5 deletions(-) diff --git a/hosts/nostromo.nix b/hosts/nostromo.nix index 22a1675..d2baf76 100644 --- a/hosts/nostromo.nix +++ b/hosts/nostromo.nix @@ -9,6 +9,7 @@ in { environment.systemPackages = with pkgs; [ dnsproxy + fudoLispPackages.cl-sasl google-photos-uploader libguestfs-with-appliance libvirt @@ -51,11 +52,31 @@ in { enable = true; }; + # systemd.network.networks.eno2 = { + # dhcpV6Config = { + # IPv6PrefixDelegation = "dhcpv6"; + # PrefixDelegationHint = 60; + # }; + # }; + + systemd.network.networks.eno2 = { + extraConfig = { + IPv6AcceptRA = true; + IPv6PrefixDelegation = "dhcpv6"; + }; + }; + networking = { hostName = hostname; nameservers = [ host-internal-ip ]; + dhcpcd.extraConfig = '' + interface eno2 + ia_na 1 + ia_pd 2 eno2/0 + ''; + # Create a bridge for VMs to use macvlans = { intif0 = { @@ -73,7 +94,9 @@ in { enp9s0f0.useDHCP = false; enp9s0f1.useDHCP = false; - eno2.useDHCP = true; + eno2 = { + useDHCP = true; + }; intif0 = { useDHCP = false; @@ -104,6 +127,15 @@ in { isSystemUser = true; }; }; + + groups = { + backplane-powerdns = { + members = [ "backplane-powerdns" ]; + }; + backplane-dns = { + members = [ "backplane-dns" ]; + }; + }; }; fudo = { @@ -172,8 +204,6 @@ in { }; services = { - # dhcpd6.enable = true; - nginx = { enable = true; diff --git a/packages/local.nix b/packages/local.nix index 3e4024b..c38a16c 100644 --- a/packages/local.nix +++ b/packages/local.nix @@ -1,7 +1,18 @@ -{ pkgs, ... }: +{ pkgs, lib, ... }: -{ +let + lispPackageRepo = builtins.fetchGit { + url = "https://git.fudo.org/fudo-public/lisp-packages.git"; + }; + +in { nixpkgs.config.packageOverrides = pkgs: rec { + + fudoLispPackages = import "${lispPackageRepo}" { + unstablePkgs = import {}; + inherit lib; + }; + letsencrypt-ca = import ./letsencrypt-ca.nix { stdenv = pkgs.stdenv; fetchurl = builtins.fetchurl;