Personal Nix setup
at main 561 B view raw
1{ lib, config, helpers, pkgs, ... }: 2 3with lib; 4let 5 cfg = config.modules.apps; 6in { 7 options.modules.apps.slack = { 8 enable = mkOption { 9 default = false; 10 description = "Whether to enable Slack."; 11 type = types.bool; 12 }; 13 }; 14 15 config = mkIf (cfg.enable && cfg.slack.enable) (mkMerge [ 16 { 17 home.packages = with pkgs; let 18 pkg = if helpers.system == "aarch64-linux" then slacky else slack; 19 in [ pkg ]; 20 } 21 22 (helpers.mkIfLinux { 23 systemd.user.sessionVariables.NIXOS_OZONE_WL = mkDefault 1; 24 }) 25 ]); 26}