From 70f30c679c02f23b8ebe03edd22395b49b4c81ec Mon Sep 17 00:00:00 2001 From: Kabbone Date: Thu, 3 Nov 2022 16:51:58 +0100 Subject: [PATCH] configs, packages: add streamlink, mpv and a new config structure --- hosts/home.nix | 4 +++- hosts/laptop/home.nix | 1 + modules/programs/configs/default.nix | 15 +++++++++++++++ modules/programs/configs/mpv.conf | 5 +++++ modules/programs/configs/mpv.nix | 24 ++++++++++++++++++++++++ modules/programs/default.nix | 1 + 6 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 modules/programs/configs/default.nix create mode 100644 modules/programs/configs/mpv.conf create mode 100644 modules/programs/configs/mpv.nix diff --git a/hosts/home.nix b/hosts/home.nix index 62e094b..29754d0 100644 --- a/hosts/home.nix +++ b/hosts/home.nix @@ -34,10 +34,12 @@ pfetch # Minimal fetch ranger # File Manager gnupg # sign and authorize 2nd Fac + + xdg-utils # Video/Audio #feh # Image Viewer - #mpv # Media Player + mpv # Media Player #pavucontrol # Audio control #stremio # Media Streamer #libva-utils # vainfo diff --git a/hosts/laptop/home.nix b/hosts/laptop/home.nix index 4f5f54d..2650c19 100644 --- a/hosts/laptop/home.nix +++ b/hosts/laptop/home.nix @@ -28,6 +28,7 @@ #firefox chromium thunderbird + streamlink streamlink-twitch-gui-bin element-desktop intel-gpu-tools diff --git a/modules/programs/configs/default.nix b/modules/programs/configs/default.nix new file mode 100644 index 0000000..832f57e --- /dev/null +++ b/modules/programs/configs/default.nix @@ -0,0 +1,15 @@ +# +# Configs +# +# flake.nix +# ├─ ./hosts +# │ └─ home.nix +# └─ ./modules +# └─ ./programs +# └─ default.nix * +# └─ ... +# + +[ + ./mpv.nix +] diff --git a/modules/programs/configs/mpv.conf b/modules/programs/configs/mpv.conf new file mode 100644 index 0000000..dfc44d2 --- /dev/null +++ b/modules/programs/configs/mpv.conf @@ -0,0 +1,5 @@ +hwdec=vaapi +vo=gpu +hwdec-codecs=all +gpu-context=wayland +#profile=gpu-hq diff --git a/modules/programs/configs/mpv.nix b/modules/programs/configs/mpv.nix new file mode 100644 index 0000000..105631b --- /dev/null +++ b/modules/programs/configs/mpv.nix @@ -0,0 +1,24 @@ +# +# mpv NixOS & Home manager configuration +# +# flake.nix +# ├─ ./hosts +# │ └─ ./home.nix +# └─ ./modules +# └─ ./programs +# └─ ./configs +# └─ mpv.nix * +# + +{ config, lib, pkgs, ... }: + +{ + home.file = { + ".config/mpv/mpv.conf".text = '' + hwdec=vaapi + vo=gpu + hwdec-codecs=all + gpu-context=wayland + #profile=gpu-hq + ''; +} diff --git a/modules/programs/default.nix b/modules/programs/default.nix index 3e8c020..a5fb70d 100644 --- a/modules/programs/default.nix +++ b/modules/programs/default.nix @@ -14,6 +14,7 @@ ./alacritty.nix ./rofi.nix ./firefox.nix + ./configs #./waybar.nix #./games.nix ]