shinobu/router: Use callPackage for common

23.11
Simon Bruder 2023-10-18 20:04:04 +02:00
parent 19da5e13b9
commit 1740570d00
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
5 changed files with 7 additions and 6 deletions

View File

@ -1,3 +1,4 @@
{ ... }:
{
domain = "home.sbruder.de";
tc = {

View File

@ -27,7 +27,7 @@
# Thanks to Intels wisdom, its not possible to use 5GHz in AP mode.
{ config, lib, pkgs, ... }:
let
cfg = import ./common.nix;
cfg = pkgs.callPackage ./common.nix { };
in
{
imports = [

View File

@ -1,6 +1,6 @@
{ config, ... }:
{ config, pkgs, ... }:
let
cfg = import ./common.nix;
cfg = pkgs.callPackage ./common.nix { };
in
{
services.dnsmasq = {

View File

@ -1,6 +1,6 @@
{ config, lib, ... }:
{ config, lib, pkgs, ... }:
let
cfg = import ./common.nix;
cfg = pkgs.callPackage ./common.nix { };
mkKeyValue = lib.generators.mkKeyValueDefault
rec {

View File

@ -8,7 +8,7 @@
# I averaged a longer iperf3 run to around 509Kbit/s ≈ 4.17Mbit/s (excluding the initial burst).
{ lib, pkgs, utils, ... }:
let
cfg = ((import ./common.nix).tc);
cfg = ((pkgs.callPackage ./common.nix { }).tc);
mkClass =
{ minor