diff options
| author | schererleander <leander@schererleander.de> | 2026-01-09 16:57:15 +0100 |
|---|---|---|
| committer | schererleander <leander@schererleander.de> | 2026-01-09 23:13:49 +0100 |
| commit | 3b5a73c436eb22e0cda59469263490705e149cb9 (patch) | |
| tree | ae3f20ca6008b11f71247dfc6e2df8218de9b95c /modules/home/media/nixcord | |
| parent | ec45aae780da92e12cf82c5a32e336b14b7540ba (diff) | |
refactor: use flake-parts, change modules structure
Diffstat (limited to 'modules/home/media/nixcord')
| -rw-r--r-- | modules/home/media/nixcord/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
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; + }; + }; + }; + }; +} |
