From 33ef87661fe2af969641e94ed49d3ff7e7063497 Mon Sep 17 00:00:00 2001 From: yunfachi Date: Fri, 15 Dec 2023 12:39:27 +0000 Subject: [PATCH] feat(home): add discord (vesktop) --- home/programs/discord.nix | 12 ++++++++++++ options/home/programs.nix | 1 + 2 files changed, 13 insertions(+) create mode 100644 home/programs/discord.nix diff --git a/home/programs/discord.nix b/home/programs/discord.nix new file mode 100644 index 0000000..bfbdf14 --- /dev/null +++ b/home/programs/discord.nix @@ -0,0 +1,12 @@ +{ + config, + lib, + pkgs, + ... +}: let + cfg = config.yunfachi.discord; +in { + config = lib.mkIf cfg.enable { + home.packages = with pkgs; [vesktop]; + }; +} diff --git a/options/home/programs.nix b/options/home/programs.nix index 131c649..ff287a3 100644 --- a/options/home/programs.nix +++ b/options/home/programs.nix @@ -7,6 +7,7 @@ cfg = config.yunfachi; in { options.yunfachi = { + discord.enable = lib.mkEnableOption "discord" // {default = type == "desktop";}; firefox.enable = lib.mkEnableOption "firefox" // {default = type == "desktop";}; kitty.enable = lib.mkEnableOption "kitty" // {default = type == "desktop";}; shikimori.enable = lib.mkEnableOption "shikimori" // {default = type == "desktop";};