Add media applications on mac
This commit is contained in:
parent
9a6a7c0872
commit
229a0e1f94
|
@ -12,6 +12,7 @@ in {
|
|||
./user.nix
|
||||
./fonts.nix
|
||||
./settings.nix
|
||||
./media.nix
|
||||
];
|
||||
|
||||
options = with lib;
|
||||
|
@ -35,6 +36,11 @@ in {
|
|||
enable = mkDefaultOption "Communication applications"
|
||||
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 =
|
||||
mkDefaultOption "Virtualization" config.nathan.config.isDesktop;
|
||||
|
@ -78,6 +84,7 @@ in {
|
|||
upgrade = true;
|
||||
cleanup = "zap";
|
||||
};
|
||||
taps = [ "homebrew/cask-versions" ];
|
||||
casks = lib.mkMerge [
|
||||
(lib.mkIf config.nathan.programs.firefox [{ name = "firefox"; }])
|
||||
(lib.mkIf config.nathan.programs.virtualization [{ name = "utm"; }])
|
||||
|
|
|
@ -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"; } ];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue