diff --git a/flake.nix b/flake.nix index 78ced0d..c6c664d 100644 --- a/flake.nix +++ b/flake.nix @@ -28,7 +28,7 @@ }; in with pkgs; - { + rec { devShells.default = mkShell { name = "watgbridge-dev"; @@ -43,6 +43,11 @@ hardeningDisable = [ "fortify" ]; }; + apps.default = { + type = "app"; + program = "${packages.default}/bin/watgbridge"; + }; + packages = rec { watgbridge = (pkgs.callPackage ./nix/pkgs/watgbridge-dev.nix { inherit nix-filter; }); default = watgbridge; diff --git a/nix/modules/nixos/default.nix b/nix/modules/nixos/default.nix index 86c6586..78da864 100644 --- a/nix/modules/nixos/default.nix +++ b/nix/modules/nixos/default.nix @@ -14,7 +14,7 @@ let in { options = { - services.watgbridge = import ../commonOptions.nix { inherit lib package; }; + services.watgbridge = import ../commonOptions.nix { inherit lib package; forNixos = true; }; }; config = mkIf cfg.enable {