nixos-config/modules/packages.nix

44 lines
1.6 KiB
Nix
Raw Normal View History

2019-11-17 19:28:43 +04:00
{ pkgs, config, lib, ... }:
let
moz_overlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz);
in {
2019-08-27 23:41:02 +04:00
nixpkgs.overlays = [
2019-11-17 19:28:43 +04:00
moz_overlay
2019-09-29 14:45:51 +04:00
(self: old: rec {
# nerdfonts = nur.balsoft.pkgs.roboto-mono-nerd;
youtube-to-mpv = pkgs.callPackage ./applications/youtube-to-mpv.nix {};
2019-10-10 19:37:45 +04:00
wg-conf = pkgs.callPackage ./applications/wg-conf.nix {};
2019-10-17 00:31:54 +04:00
podman-compose = pkgs.callPackage ./applications/podman-compose.nix {};
2019-09-29 14:45:51 +04:00
xonar-fp = pkgs.writers.writeBashBin "xonar-fp" ''
CURRENT_STATE=`amixer -c 0 sget "Front Panel" | egrep -o '\[o.+\]'`
if [[ $CURRENT_STATE == '[on]' ]]; then
amixer -c 0 sset "Front Panel" mute
else
amixer -c 0 sset "Front Panel" unmute
fi
'';
})
(self: super: {
vscode-with-extensions = super.vscode-with-extensions.override {
# When the extension is already available in the default extensions set.
vscodeExtensions = with super.vscode-extensions; [
bbenoist.Nix
2019-10-15 19:39:02 +04:00
] ++ super.vscode-utils.extensionsFromVscodeMarketplace [
{
name = "vscode-remote-extensionpack";
publisher = "ms-vscode-remote";
version = "0.17.0";
sha256 = "Dlf9RzNefPilnbezh13C+WAsTJ7GqSCMEhnWhER+u5s=";
}
2019-09-29 14:45:51 +04:00
];
};
2019-10-15 19:39:02 +04:00
2019-09-29 14:45:51 +04:00
})
2019-08-27 23:41:02 +04:00
];
2019-09-22 16:40:16 +04:00
nixpkgs.config = {
packageOverrides = pkgs: {
i3lock-fancy = pkgs.callPackage ./applications/i3lock-fancy.nix {};
2019-10-10 14:28:33 +04:00
git-with-libsecret = pkgs.git.override { withLibsecret = true; };
2019-09-22 16:40:16 +04:00
};
};
2019-09-11 17:17:56 +04:00
}