shinobu/router: Use callPackage for common
This commit is contained in:
parent
19da5e13b9
commit
1740570d00
|
@ -1,3 +1,4 @@
|
||||||
|
{ ... }:
|
||||||
{
|
{
|
||||||
domain = "home.sbruder.de";
|
domain = "home.sbruder.de";
|
||||||
tc = {
|
tc = {
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
# Thanks to Intel’s wisdom, it’s not possible to use 5GHz in AP mode.
|
# Thanks to Intel’s wisdom, it’s not possible to use 5GHz in AP mode.
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
let
|
let
|
||||||
cfg = import ./common.nix;
|
cfg = pkgs.callPackage ./common.nix { };
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{ config, ... }:
|
{ config, pkgs, ... }:
|
||||||
let
|
let
|
||||||
cfg = import ./common.nix;
|
cfg = pkgs.callPackage ./common.nix { };
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
services.dnsmasq = {
|
services.dnsmasq = {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
let
|
let
|
||||||
cfg = import ./common.nix;
|
cfg = pkgs.callPackage ./common.nix { };
|
||||||
|
|
||||||
mkKeyValue = lib.generators.mkKeyValueDefault
|
mkKeyValue = lib.generators.mkKeyValueDefault
|
||||||
rec {
|
rec {
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
# I averaged a longer iperf3 run to around 509 Kbit/s ≈ 4.17 Mbit/s (excluding the initial burst).
|
# I averaged a longer iperf3 run to around 509 Kbit/s ≈ 4.17 Mbit/s (excluding the initial burst).
|
||||||
{ lib, pkgs, utils, ... }:
|
{ lib, pkgs, utils, ... }:
|
||||||
let
|
let
|
||||||
cfg = ((import ./common.nix).tc);
|
cfg = ((pkgs.callPackage ./common.nix { }).tc);
|
||||||
|
|
||||||
mkClass =
|
mkClass =
|
||||||
{ minor
|
{ minor
|
||||||
|
|
Loading…
Reference in a new issue