aboutsummaryrefslogtreecommitdiff
path: root/modules/nixcord.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/nixcord.nix')
-rw-r--r--modules/nixcord.nix6
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/nixcord.nix b/modules/nixcord.nix
index fa0135b..0be180b 100644
--- a/modules/nixcord.nix
+++ b/modules/nixcord.nix
@@ -1,10 +1,8 @@
{ config, lib, pkgs, inputs, ... }:
-let
- cfg = config.nixcord;
-in {
+{
options.nixcord.enable = lib.mkEnableOption "Enable nixcord and setup";
- config = lib.mkIf cfg.enable {
+ config = lib.mkIf config.nixcord.enable {
programs.nixcord = {
enable = true; # enable Nixcord. Also installs discord package
#quickCss = "some CSS"; # quickCSS file