fix(nasp): fix build

This commit is contained in:
Dict Xiong 2024-05-29 23:55:08 +08:00
parent e9d6ec88ab
commit 0d842b7dc9

View File

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