modules: Add mkHost

This commit is contained in:
2021-08-31 18:01:29 +02:00
parent 488dd977d1
commit 7445d7c5c0
17 changed files with 440 additions and 410 deletions

17
overlays/default.nix Normal file
View File

@@ -0,0 +1,17 @@
{
pkgs
, lib
}:
{
emacs = import (builtins.fetchGit {
url = "https://github.com/nix-community/emacs-overlay.git";
ref = "master";
rev = "ce0e9482d53d69bedc8416d8a984d00e17607826";
});
steam = import ./steam.nix { pkgs = pkgs; lib = lib; };
nur = import ./nur.nix pkgs;
unstable = import ./unstable.nix pkgs;
custom = import ./custom.nix pkgs;
simple = import ./simple.nix pkgs;
}

31
overlays/simple.nix Normal file
View File

@@ -0,0 +1,31 @@
pkgs: final: prev:
let
# NOTE: For some reason --fs-screen-name and --screen-name are not in
# 0.33.1. So wait and then remove this.
mpv-git = prev.mpv-unwrapped.overrideAttrs (old: {
version = "0.34.0";
src = builtins.fetchGit {
url = "https://github.com/mpv-player/mpv.git";
ref = "master";
rev = "0b56e1c00a57fdb767674462c299a5c973a9e373";
};
patches = [];
});
in {
mpv = prev.wrapMpv mpv-git {
# Prevent the need for prefixing mpv with DRI_PRIME=1
extraMakeWrapperArgs = [
"--set" "DRI_PRIME" "1"
];
};
gajim = prev.gajim.overrideAttrs (old: {
# Enable notification sounds
propagatedBuildInputs = old.propagatedBuildInputs ++ [ prev.gsound ];
});
animedl = prev.animedl.overrideAttrs (old: {
extraPkgs = pkgs: with pkgs; [ mpv ];
});
}