[mpv] Merge module into user

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

View file

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

View file

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