summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Biz/Bild.hs12
-rw-r--r--Biz/Bild/Rules.nix2
-rw-r--r--Biz/Cloud.nix2
-rw-r--r--Biz/Dev.nix2
-rw-r--r--Biz/Pie.nix3
-rw-r--r--Biz/Que/Prod.nix6
-rw-r--r--Hero/Prod.nix6
7 files changed, 13 insertions, 20 deletions
diff --git a/Biz/Bild.hs b/Biz/Bild.hs
index eee7eb4..cba6539 100644
--- a/Biz/Bild.hs
+++ b/Biz/Bild.hs
@@ -440,18 +440,6 @@ build andTest loud Target {..} = do
[ path,
"-o",
outDir </> Namespace.toPath namespace,
- -- Set default arguments to nix functions
- "--arg",
- "bild",
- "import " <> root
- </> "Biz/Bild/Rules.nix"
- <> " { nixpkgs = import "
- <> root
- </> "Biz/Bild/Nixpkgs.nix"
- <> "; }",
- "--arg",
- "lib",
- "(import " <> root </> "Biz/Bild/Nixpkgs.nix).lib",
"--builders",
Text.unpack builder
]
diff --git a/Biz/Bild/Rules.nix b/Biz/Bild/Rules.nix
index 800f1df..afea746 100644
--- a/Biz/Bild/Rules.nix
+++ b/Biz/Bild/Rules.nix
@@ -1,4 +1,4 @@
-{ nixpkgs }:
+{ nixpkgs ? import ./Nixpkgs.nix }:
with nixpkgs;
diff --git a/Biz/Cloud.nix b/Biz/Cloud.nix
index c70c0ad..5bcb0a1 100644
--- a/Biz/Cloud.nix
+++ b/Biz/Cloud.nix
@@ -1,4 +1,4 @@
-{ bild }:
+{ bild ? import ./Bild/Rules.nix {} }:
# Cloud infrastructure, always online. Mostly for messaging-related stuff.
diff --git a/Biz/Dev.nix b/Biz/Dev.nix
index f372484..ab78b44 100644
--- a/Biz/Dev.nix
+++ b/Biz/Dev.nix
@@ -1,4 +1,4 @@
-{ bild }:
+{ bild ? import ./Bild/Rules.nix {} }:
# Dev machine for work and building stuff.
diff --git a/Biz/Pie.nix b/Biz/Pie.nix
index 70e2f23..de7cf20 100644
--- a/Biz/Pie.nix
+++ b/Biz/Pie.nix
@@ -1 +1,2 @@
-{ bild }: bild.ghc ./Pie.hs
+{ bild ? import ./Bild/Rules.nix {} }:
+bild.ghc ./Pie.hs
diff --git a/Biz/Que/Prod.nix b/Biz/Que/Prod.nix
index 12da1eb..70272ae 100644
--- a/Biz/Que/Prod.nix
+++ b/Biz/Que/Prod.nix
@@ -1,4 +1,6 @@
-{ bild, lib }:
+{ bild ? import ../Bild/Rules.nix {}
+, nixpkgs ? import ../Bild/Nixpkgs.nix
+}:
# The production server for que.run
@@ -31,7 +33,7 @@ bild.os {
defaultGateway = "157.245.224.1";
defaultGateway6 = "2604:a880:2:d1::1";
dhcpcd.enable = false;
- usePredictableInterfaceNames = lib.mkForce true;
+ usePredictableInterfaceNames = nixpkgs.lib.mkForce true;
interfaces = {
eth0 = {
ipv4.addresses = [
diff --git a/Hero/Prod.nix b/Hero/Prod.nix
index cc54f95..5b9dde4 100644
--- a/Hero/Prod.nix
+++ b/Hero/Prod.nix
@@ -1,4 +1,6 @@
-{ bild, lib }:
+{ bild ? import ../Biz/Bild/Rules.nix {}
+, nixpkgs ? import ../Biz/Bild/Nixpkgs.nix
+}:
# Production server for herocomics.app
@@ -22,7 +24,7 @@ bild.os {
defaultGateway = "138.68.40.1";
defaultGateway6 = "";
dhcpcd.enable = false;
- usePredictableInterfaceNames = lib.mkForce true;
+ usePredictableInterfaceNames = nixpkgs.lib.mkForce true;
interfaces = {
eth0 = {
ipv4.addresses = [