mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-27 00:45:37 +00:00
25 lines
388 B
Nix
25 lines
388 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}:
|
|
{
|
|
|
|
options = {
|
|
slack = {
|
|
enable = lib.mkEnableOption {
|
|
description = "Enable Slack.";
|
|
default = false;
|
|
};
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf (config.gui.enable && config.slack.enable) {
|
|
unfreePackages = [ "slack" ];
|
|
home-manager.users.${config.user} = {
|
|
home.packages = with pkgs; [ slack ];
|
|
};
|
|
};
|
|
}
|