Add discord

This commit is contained in:
Joshua Yuen 2026-06-20 23:26:41 -04:00
parent 893fad3b9c
commit 44ce54628e
Signed by: josh
GPG Key ID: 530DA0331EFE99F5
5 changed files with 35 additions and 0 deletions

View File

@ -4,6 +4,7 @@
{
imports = [
./direnv.nix
./discord.nix
./firefox.nix
./gpg.nix
./fzf.nix

18
modules/homes/discord.nix Normal file
View File

@ -0,0 +1,18 @@
{
config,
lib,
pkgs,
...
}:
with lib;
let
cfg = config.modules.discord;
in
{
config = mkIf cfg.enable {
programs.discord = {
enable = true;
package = pkgs.discord;
};
};
}

View File

@ -3,6 +3,7 @@
}:
{
imports = [
./discord.nix
./displayManager.nix
./gpg.nix
./hyprland.nix

View File

@ -0,0 +1,13 @@
{
lib,
...
}:
with lib;
{
options.modules.discord = {
enable = mkEnableOption {
default = false;
description = "Enable Discord";
};
};
}

View File

@ -23,4 +23,6 @@
modules.shell.defaultShell = "zsh";
modules.pipewire.enable = true;
modules.discord.enable = true;
}