global/media: init from music, move others into media
This commit is contained in:
parent
b2f77cb919
commit
28b2a5af87
7 changed files with 31 additions and 31 deletions
|
@ -41,6 +41,7 @@ in
|
||||||
packages = packageListOpt;
|
packages = packageListOpt;
|
||||||
shellAliases = mkOpt (attrsOf str) { };
|
shellAliases = mkOpt (attrsOf str) { };
|
||||||
variables = mkOpt (attrsOf (oneOf [ (listOf str) str path ])) { };
|
variables = mkOpt (attrsOf (oneOf [ (listOf str) str path ])) { };
|
||||||
|
media.enable = mkBoolOpt false;
|
||||||
};
|
};
|
||||||
|
|
||||||
common = mkOpt (attrsOf anything) { };
|
common = mkOpt (attrsOf anything) { };
|
||||||
|
|
|
@ -59,7 +59,7 @@
|
||||||
xxHash
|
xxHash
|
||||||
yq
|
yq
|
||||||
zip
|
zip
|
||||||
] ++ (lib.optionals config.info.graphical (with pkgs; [
|
] ++ (lib.optionals config.universe.media.enable (with pkgs; [
|
||||||
graphviz
|
graphviz
|
||||||
yt-dlp
|
yt-dlp
|
||||||
]));
|
]));
|
||||||
|
@ -82,6 +82,7 @@
|
||||||
vim
|
vim
|
||||||
]) ++ (lib.optionals config.info.graphical (with pkgs; [
|
]) ++ (lib.optionals config.info.graphical (with pkgs; [
|
||||||
arandr
|
arandr
|
||||||
|
])) ++ (lib.optionals config.universe.media.enable (with pkgs; [
|
||||||
ffmpeg-full
|
ffmpeg-full
|
||||||
mpv
|
mpv
|
||||||
]));
|
]));
|
||||||
|
|
|
@ -18,6 +18,7 @@ in
|
||||||
modules.hardware.audio.enable = mkDefault true;
|
modules.hardware.audio.enable = mkDefault true;
|
||||||
modules.hardware.peripherals.yubikey.enable = true;
|
modules.hardware.peripherals.yubikey.enable = true;
|
||||||
info.stationary = mkDefault true;
|
info.stationary = mkDefault true;
|
||||||
|
universe.media.enable = mkDefault true;
|
||||||
})
|
})
|
||||||
|
|
||||||
(mkIf cfg.laptop {
|
(mkIf cfg.laptop {
|
||||||
|
@ -27,6 +28,8 @@ in
|
||||||
peripherals.yubikey.enable = true;
|
peripherals.yubikey.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
universe.media.enable = mkDefault true;
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
acpilight.enable = true;
|
acpilight.enable = true;
|
||||||
};
|
};
|
||||||
|
|
|
@ -53,12 +53,6 @@ in
|
||||||
simulide
|
simulide
|
||||||
speedcrunch
|
speedcrunch
|
||||||
|
|
||||||
# Media
|
|
||||||
id3v2
|
|
||||||
jellyfin-media-player
|
|
||||||
picard
|
|
||||||
feishin
|
|
||||||
|
|
||||||
(discord-canary.override { withVencord = true; withOpenASAR = true; })
|
(discord-canary.override { withVencord = true; withOpenASAR = true; })
|
||||||
(discord.override { withVencord = true; withOpenASAR = true; })
|
(discord.override { withVencord = true; withOpenASAR = true; })
|
||||||
schildichat-desktop
|
schildichat-desktop
|
||||||
|
@ -71,7 +65,7 @@ in
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.user.tmpfiles.users.infinidoge.rules = mkIf config.info.graphical [
|
systemd.user.tmpfiles.users.infinidoge.rules = mkIf config.universe.media.enable [
|
||||||
"L+ /home/infinidoge/.local/share/jellyfinmediaplayer/scripts/mpris.so - - - - ${pkgs.mpvScripts.mpris}/share/mpv/scripts/mpris.so"
|
"L+ /home/infinidoge/.local/share/jellyfinmediaplayer/scripts/mpris.so - - - - ${pkgs.mpvScripts.mpris}/share/mpv/scripts/mpris.so"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
24
users/modules/global/media.nix
Normal file
24
users/modules/global/media.nix
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
{ main, lib, pkgs, ... }:
|
||||||
|
lib.mkIf main.universe.media.enable
|
||||||
|
{
|
||||||
|
services = {
|
||||||
|
mpris-proxy.enable = true;
|
||||||
|
playerctld.enable = true;
|
||||||
|
easyeffects.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.obs-studio = {
|
||||||
|
enable = main.universe.media.enable;
|
||||||
|
plugins = with pkgs.obs-studio-plugins; [
|
||||||
|
obs-pipewire-audio-capture
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
feishin
|
||||||
|
id3v2
|
||||||
|
jellyfin-media-player
|
||||||
|
picard
|
||||||
|
playerctl
|
||||||
|
];
|
||||||
|
}
|
|
@ -1,13 +0,0 @@
|
||||||
{ main, lib, pkgs, ... }:
|
|
||||||
lib.mkIf main.info.graphical
|
|
||||||
{
|
|
||||||
services = {
|
|
||||||
mpris-proxy.enable = true;
|
|
||||||
playerctld.enable = true;
|
|
||||||
easyeffects.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
playerctl
|
|
||||||
];
|
|
||||||
}
|
|
|
@ -1,10 +0,0 @@
|
||||||
{ main, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
programs.obs-studio = {
|
|
||||||
enable = main.info.graphical;
|
|
||||||
plugins = with pkgs.obs-studio-plugins; [
|
|
||||||
obs-pipewire-audio-capture
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue