Skip to content

Commit

Permalink
feat(home): add discord (vesktop)
Browse files Browse the repository at this point in the history
  • Loading branch information
yunfachi committed Dec 15, 2023
1 parent 76c060d commit 33ef876
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions home/programs/discord.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
config,
lib,
pkgs,
...
}: let
cfg = config.yunfachi.discord;
in {
config = lib.mkIf cfg.enable {
home.packages = with pkgs; [vesktop];
};
}
1 change: 1 addition & 0 deletions options/home/programs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";};
Expand Down

0 comments on commit 33ef876

Please sign in to comment.