Skip to content
This repository has been archived by the owner on Dec 25, 2024. It is now read-only.

Commit

Permalink
fix(nixos): solved mirror problem with nixos module
Browse files Browse the repository at this point in the history
  • Loading branch information
Wittano committed Aug 21, 2024
1 parent 0433cdc commit 63c2832
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nixos.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ with lib;
let
cfg = config.komputer;

komputer = pkgs.callPackage ./../default.nix { };
komputer = pkgs.callPackage ./default.nix { };
in
{
options = {
Expand All @@ -15,7 +15,7 @@ in
description = "komputer package";
};
guildID = mkOption {
type = types nullOr types.str;
type = types.nullOr types.str;
default = null;
description = "Discord server id, that you deploy bot";
};
Expand Down Expand Up @@ -62,7 +62,7 @@ in
DISCORD_BOT_TOKEN = cfg.token;
APPLICATION_ID = cfg.applicationID;
MONGODB_URI = cfg.mongodbURI;
} // attrsets.optionAtts (cfg.guildID != null) { SERVER_GUID = cfg.guildID; };
} // (attrsets.optionalAttrs (cfg ? guildID && cfg.guildID != null) { SERVER_GUID = cfg.guildID; });
script = "${cfg.package}/bin/komputer";
};
};
Expand Down

0 comments on commit 63c2832

Please sign in to comment.