From 3b5a73c436eb22e0cda59469263490705e149cb9 Mon Sep 17 00:00:00 2001 From: schererleander Date: Fri, 9 Jan 2026 16:57:15 +0100 Subject: refactor: use flake-parts, change modules structure --- modules/home/media/nixcord/default.nix | 36 ++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 modules/home/media/nixcord/default.nix (limited to 'modules/home/media/nixcord/default.nix') diff --git a/modules/home/media/nixcord/default.nix b/modules/home/media/nixcord/default.nix new file mode 100644 index 0000000..8f3b665 --- /dev/null +++ b/modules/home/media/nixcord/default.nix @@ -0,0 +1,36 @@ +{ + config, + lib, + ... +}: +let + cfg = config.nx.media.nixcord; + inherit (lib) mkEnableOption mkOption types mkIf; +in +{ + options.nx.media.nixcord = { + enable = mkEnableOption "nixcord and setup"; + frameless = mkOption { + description = "Make discord frameless"; + type = types.bool; + default = true; + }; + }; + config = mkIf cfg.enable { + programs.nixcord = { + enable = true; + config = { + themeLinks = [ + "https://refact0r.github.io/system24/theme/system24.theme.css" + ]; + frameless = cfg.frameless; + plugins = { + alwaysAnimate.enable = false; + imageLink.enable = true; + imageZoom.enable = true; + translate.enable = true; + }; + }; + }; + }; +} -- cgit v1.3.1