From 63e71f42cf1f856b4d075fb9eab4b0fb6d7e4198 Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Mon, 6 Apr 2026 15:21:03 +0200 Subject: [PATCH] Add the package by default Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com> --- flake.nix | 2 +- nix/module.nix | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 72da7bd..3130d47 100644 --- a/flake.nix +++ b/flake.nix @@ -50,7 +50,7 @@ ''; }; in { - nixosModules.default = import ./nix/module.nix; + nixosModules.default = import ./nix/module.nix { inherit self; }; packages.${system} = { backend = backendPkg; diff --git a/nix/module.nix b/nix/module.nix index f981602..0938e07 100644 --- a/nix/module.nix +++ b/nix/module.nix @@ -1,6 +1,8 @@ +{ self }: { config, lib, + pkgs, ... }: let cfg = config.services.iknowyou; @@ -22,6 +24,7 @@ in { package = lib.mkOption { type = lib.types.package; + default = self.packages.${pkgs.stdenv.hostPlatform.system}.default; description = "The IKY package (must expose bin/server and share/iky/frontend/)."; };