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 ''; - }) + })) ]); }