refactor: remove duplication
This commit is contained in:
109 files changed
+2206
-3078
No files matched your search
@@ -14,8 +14,9 @@
|
||||
systemd,
|
||||
}:
|
||||
|
||||
writeShellApplication {
|
||||
import ./script.nix { inherit lib writeShellApplication; } {
|
||||
name = "proxy-suite-net";
|
||||
script = ./net-rescue.sh;
|
||||
runtimeInputs = [
|
||||
coreutils
|
||||
curl
|
||||
@@ -27,8 +28,4 @@ writeShellApplication {
|
||||
iputils
|
||||
systemd
|
||||
];
|
||||
text = lib.concatStringsSep "\n" [
|
||||
(builtins.readFile ./net-lib.sh)
|
||||
(builtins.readFile ./net-rescue.sh)
|
||||
];
|
||||
}
|
||||
Reference in new issue
Block a user