diff --git a/homes/x86_64-linux/philipp@bodenheizung/default.nix b/homes/x86_64-linux/philipp@bodenheizung/default.nix index a0f09f9..2a1f5ca 100644 --- a/homes/x86_64-linux/philipp@bodenheizung/default.nix +++ b/homes/x86_64-linux/philipp@bodenheizung/default.nix @@ -25,6 +25,7 @@ with lib.${namespace}; cinny = enabled; spotify = enabled; obs = enabled; + discord = enabled; kitty = { enable = true; plasma = enabled; diff --git a/modules/home/apps/discord/default.nix b/modules/home/apps/discord/default.nix new file mode 100644 index 0000000..34af0a2 --- /dev/null +++ b/modules/home/apps/discord/default.nix @@ -0,0 +1,22 @@ +{ + config, + lib, + pkgs, + namespace, + ... +}: +with lib; +with lib.${namespace}; +let + cfg = config.${namespace}.apps.discord; +in +{ + options.${namespace}.apps.discord = with types; { + enable = mkBoolOpt false "Whether or not to enable discord."; + }; + + config = mkIf cfg.enable { + home.packages = with pkgs; [ discord ]; + }; + +}