mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 04:08:12 +09:00
27 lines
465 B
Nix
27 lines
465 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.my.applications.slack;
|
|
in
|
|
{
|
|
options.my.applications.slack = {
|
|
enable = lib.mkEnableOption "Slack messaging client";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
nixpkgs.config.allowUnfreePredicate = pkg: lib.getName pkg == "slack";
|
|
|
|
home-manager.sharedModules = [
|
|
{
|
|
home.packages = with pkgs; [
|
|
slack # Team messaging and collaboration platform
|
|
];
|
|
}
|
|
];
|
|
};
|
|
}
|