[mpv] Merge module into user

This commit is contained in:
Tibo De Peuter 2023-10-18 17:02:32 +02:00
parent c46a7ce9c3
commit 502f0f8bb0
4 changed files with 13 additions and 16 deletions

View file

@ -40,6 +40,7 @@
};
environment.systemPackages = with pkgs; [
zenith-nvidia
wget
];

View file

@ -1,7 +1,6 @@
{
imports = [
./git
./mpv
./sops
./ssh
./tea

View file

@ -1,11 +0,0 @@
{ config, system, lib, pkgs-unstable, ... }:
{
home-manager.users.tdpeuter.home = {
packages = with pkgs-unstable; [
mpv
];
file.".config/mpv".source = ../../../../stow/mpv/.config/mpv;
};
}

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ config, lib, pkgs, pkgs-unstable, ... }:
let
cfg = config.sisyphus.users.tdpeuter;
@ -29,7 +29,7 @@ in {
# If you specify an application here, it will be detected by the configuration module
# and the configuration files will be put in place for you.
packages = with pkgs; [
packages = (with pkgs; [
duf
jellyfin-media-player
libreoffice-fresh
@ -40,13 +40,21 @@ in {
spotify
unzip
zathura
zenith-nvidia
];
]) ++ (with pkgs-unstable; [
mpv
]);
# Put dotfiles in place.
file = {
".config/alacritty" = lib.mkIf (builtins.elem pkgs.alacritty installedPkgs) {
source = ../../../../stow/alacritty/.config/alacritty;
};
".config/mpv" = lib.mkIf (builtins.elem pkgs-unstable.mpv installedPkgs) {
source = ../../../../stow/mpv/.config/mpv;
};
".config/zellij" = lib.mkIf (builtins.elem pkgs.zellij installedPkgs) {
source = ../../../../stow/zellij/.config/zellij;
};
};
};