aboutsummaryrefslogtreecommitdiff
path: root/nixinate/default.nix
diff options
context:
space:
mode:
authorMax Audron <audron@cocaine.farm>2023-08-11 16:51:35 +0200
committerMax Audron <audron@cocaine.farm>2023-08-11 16:51:35 +0200
commit8f7c59e10a48c24120dd580b196acd419e5875d0 (patch)
tree57a470c9e726b0e09aede6c8470467f790d77dc8 /nixinate/default.nix
parentrefactor k8s module (diff)
add custom nixinate impl
Diffstat (limited to 'nixinate/default.nix')
-rw-r--r--nixinate/default.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/nixinate/default.nix b/nixinate/default.nix
new file mode 100644
index 0000000..26cd4d4
--- /dev/null
+++ b/nixinate/default.nix
@@ -0,0 +1,18 @@
+# The importApply argument. Use this to reference things defined locally,
+# as opposed to the flake where this is imported.
+localFlake:
+
+# Regular module arguments; self, inputs, etc all reference the final user flake,
+# where this module was imported.
+{ lib, config, self, inputs, ... }:
+let
+ lib = inputs.nixpkgs.lib;
+ generateApps = import ./generate-apps.nix inputs.nixpkgs;
+in
+{
+ flake = {
+ };
+ perSystem = { system, pkgs, ... }: {
+ apps = generateApps pkgs self;
+ };
+}