about summary refs log tree commit diff
path: root/lib/mk_darwin.nix
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-09-16 19:01:53 +0900
committersefidel <contact@sefidel.net>2023-09-16 19:01:53 +0900
commit4188df087c133fe1899641d43b20b326253cab98 (patch)
treec24338f47c2578ef7d6b6c9f94727d0956e79776 /lib/mk_darwin.nix
parent203deb6b381aa98af908a50d7081d4a24aeaae7a (diff)
downloadnixrc-4188df087c133fe1899641d43b20b326253cab98.tar.gz
nixrc-4188df087c133fe1899641d43b20b326253cab98.zip
feat(darwin)!: remove darwin
Diffstat (limited to 'lib/mk_darwin.nix')
-rw-r--r--lib/mk_darwin.nix23
1 files changed, 0 insertions, 23 deletions
diff --git a/lib/mk_darwin.nix b/lib/mk_darwin.nix
deleted file mode 100644
index de4fc4e..0000000
--- a/lib/mk_darwin.nix
+++ /dev/null
@@ -1,23 +0,0 @@
-{ self, darwin, ... } @ args:
-
-{ name, nixpkgs, system ? "aarch64-darwin", overlays ? null, extraModules ? null }:
-darwin.lib.darwinSystem (
-  let
-    configFolder = "${self}/darwin";
-    entryPoint = "${configFolder}/${name}/configuration.nix";
-  in
-  {
-    system = system;
-    inputs = { inherit darwin nixpkgs; };
-
-    modules = [
-      {
-        _module.args = args;
-        networking.hostName = name;
-      }
-      entryPoint
-      ../modules/nix.nix
-    ] ++ nixpkgs.lib.optional (overlays != null) { nixpkgs.overlays = overlays; }
-    ++ nixpkgs.lib.optionals (extraModules != null) extraModules;
-  }
-)