From 0d842b7dc93036547d520402dc23db7bd8aa11f0 Mon Sep 17 00:00:00 2001 From: Dict Xiong Date: Wed, 29 May 2024 23:55:08 +0800 Subject: [PATCH] fix(nasp): fix build --- hosts/modules/nasp.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/hosts/modules/nasp.nix b/hosts/modules/nasp.nix index 1ca80a1..cb34a2a 100644 --- a/hosts/modules/nasp.nix +++ b/hosts/modules/nasp.nix @@ -109,9 +109,8 @@ in users.groups.nasp = {}; } # g series - (lib.mkIf (gCfg.enable) let - ipSuffix = (builtins.toString (gCfg.serial + 100)); - in { + (lib.mkIf (gCfg.enable) (let + ipSuffix = (builtins.toString (gCfg.serial + 100)); in { ## hardware nixpkgs.config.nvidia.acceptLicense = true; hardware.nvidia = { @@ -195,7 +194,7 @@ in ''; networking.rxe = { enable = true; - interfaces = [ "${networkCfg.eth2Name}" ]; + interfaces = [ "${gCfg.eth2Name}" ]; }; ## packages and services environment.systemPackages = with pkgs; [ @@ -254,6 +253,6 @@ in %nasp ALL = (root) NOPASSWD: /run/current-system/sw/bin/shutdown %nasp ALL = (root) NOPASSWD: /run/current-system/sw/bin/ip ''; - }) + })) ]); }