Add media applications on mac

This commit is contained in:
Nathan McCarty 2023-03-30 16:14:00 -04:00
parent 9a6a7c0872
commit 229a0e1f94
No known key found for this signature in database
2 changed files with 16 additions and 0 deletions

View File

@ -12,6 +12,7 @@ in {
./user.nix ./user.nix
./fonts.nix ./fonts.nix
./settings.nix ./settings.nix
./media.nix
]; ];
options = with lib; options = with lib;
@ -35,6 +36,11 @@ in {
enable = mkDefaultOption "Communication applications" enable = mkDefaultOption "Communication applications"
config.nathan.config.isDesktop; config.nathan.config.isDesktop;
}; };
media = {
# Enable by default if we are on a linux desktop
enable = mkDefaultOption "Media applications"
config.nathan.config.isDesktop;
};
# Virtualization # Virtualization
virtualization = virtualization =
mkDefaultOption "Virtualization" config.nathan.config.isDesktop; mkDefaultOption "Virtualization" config.nathan.config.isDesktop;
@ -78,6 +84,7 @@ in {
upgrade = true; upgrade = true;
cleanup = "zap"; cleanup = "zap";
}; };
taps = [ "homebrew/cask-versions" ];
casks = lib.mkMerge [ casks = lib.mkMerge [
(lib.mkIf config.nathan.programs.firefox [{ name = "firefox"; }]) (lib.mkIf config.nathan.programs.firefox [{ name = "firefox"; }])
(lib.mkIf config.nathan.programs.virtualization [{ name = "utm"; }]) (lib.mkIf config.nathan.programs.virtualization [{ name = "utm"; }])

9
modules/darwin/media.nix Normal file
View File

@ -0,0 +1,9 @@
{ config, lib, pkgs, ... }:
let np = config.nathan.programs;
in with lib; {
# Install media applications
config = mkIf np.media.enable {
homebrew.casks =
[ { name = "blackhole-2ch"; } { name = "deadbeef-nightly"; } ];
};
}