Skip to content

Commit

Permalink
fix(flake): add apps
Browse files Browse the repository at this point in the history
  • Loading branch information
akshettrj committed Nov 24, 2024
1 parent 24e6b90 commit cc0c5e0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
};
in
with pkgs;
{
rec {

devShells.default = mkShell {
name = "watgbridge-dev";
Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion nix/modules/nixos/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit cc0c5e0

Please sign in to comment.