From 63c2832011c86ad036c4a3628bd37368ed5bbed3 Mon Sep 17 00:00:00 2001 From: Wittano Bonarotti Date: Wed, 21 Aug 2024 21:39:56 +0200 Subject: [PATCH] fix(nixos): solved mirror problem with nixos module --- nixos.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nixos.nix b/nixos.nix index 8c1eb81..e793596 100644 --- a/nixos.nix +++ b/nixos.nix @@ -3,7 +3,7 @@ with lib; let cfg = config.komputer; - komputer = pkgs.callPackage ./../default.nix { }; + komputer = pkgs.callPackage ./default.nix { }; in { options = { @@ -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"; }; @@ -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"; }; };