fix(nasp): fix build
This commit is contained in:
parent
e9d6ec88ab
commit
0d842b7dc9
|
@ -109,9 +109,8 @@ in
|
||||||
users.groups.nasp = {};
|
users.groups.nasp = {};
|
||||||
}
|
}
|
||||||
# g series
|
# g series
|
||||||
(lib.mkIf (gCfg.enable) let
|
(lib.mkIf (gCfg.enable) (let
|
||||||
ipSuffix = (builtins.toString (gCfg.serial + 100));
|
ipSuffix = (builtins.toString (gCfg.serial + 100)); in {
|
||||||
in {
|
|
||||||
## hardware
|
## hardware
|
||||||
nixpkgs.config.nvidia.acceptLicense = true;
|
nixpkgs.config.nvidia.acceptLicense = true;
|
||||||
hardware.nvidia = {
|
hardware.nvidia = {
|
||||||
|
@ -195,7 +194,7 @@ in
|
||||||
'';
|
'';
|
||||||
networking.rxe = {
|
networking.rxe = {
|
||||||
enable = true;
|
enable = true;
|
||||||
interfaces = [ "${networkCfg.eth2Name}" ];
|
interfaces = [ "${gCfg.eth2Name}" ];
|
||||||
};
|
};
|
||||||
## packages and services
|
## packages and services
|
||||||
environment.systemPackages = with pkgs; [
|
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/shutdown
|
||||||
%nasp ALL = (root) NOPASSWD: /run/current-system/sw/bin/ip
|
%nasp ALL = (root) NOPASSWD: /run/current-system/sw/bin/ip
|
||||||
'';
|
'';
|
||||||
})
|
}))
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user