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