Skip to content

Commit

Permalink
fix module
Browse files Browse the repository at this point in the history
  • Loading branch information
Brawl345 committed Sep 7, 2024
1 parent 7315972 commit 627bfb4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@

packages = forAllSystems
(pkgs: {
default =
gobot =
pkgs.buildGoModule
{
pname = "gobot";
Expand All @@ -70,6 +70,8 @@
platforms = pkgs.lib.platforms.darwin ++ pkgs.lib.platforms.linux;
};
};

default = self.packages.${pkgs.system}.gobot;
});
};
}
4 changes: 2 additions & 2 deletions module.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }:
{ config, lib, self, ... }:

let
cfg = config.services.gobot;
Expand All @@ -9,7 +9,7 @@ in
options.services.gobot = {
enable = mkEnableOption "Gobot Telegram bot";

package = mkPackageOption pkgs "gobot" { };
package = mkPackageOption self.packages "gobot" { };

user = mkOption {
type = types.str;
Expand Down

0 comments on commit 627bfb4

Please sign in to comment.