Add media applications on mac
This commit is contained in:
parent
9a6a7c0872
commit
229a0e1f94
|
@ -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"; }])
|
||||||
|
|
|
@ -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