xin/overlays/default.nix

46 lines
1.2 KiB
Nix
Raw Normal View History

{ isUnstable, lib, ... }:
let
openssh = import ./openssh.nix;
tailscale = import ./tailscale.nix;
2023-01-31 12:55:00 -07:00
in {
nixpkgs.overlays = if isUnstable then [
(import ./jetbrains.nix)
(import ./tidal-hifi.nix { inherit lib; })
openssh
2023-01-26 13:39:19 -07:00
tailscale
] else [
(import ./matrix-synapse.nix)
openssh
tailscale
];
2022-08-25 12:21:35 -06:00
}
# Example Python dep overlay
# (self: super: {
# python3 = super.python3.override {
# packageOverrides = python-self: python-super: {
# canonicaljson = python-super.canonicaljson.overrideAttrs (oldAttrs: {
# nativeBuildInputs = [ python-super.setuptools ];
# });
# };
# };
# })
# Example of an overlay that changes the buildGoModule function
#tailscale = self: super: {
# tailscale = super.callPackage "${super.path}/pkgs/servers/tailscale" {
# buildGoModule = args:
# super.buildGo119Module (args // rec {
# version = "1.32.2";
# src = super.fetchFromGitHub {
# owner = "tailscale";
# repo = "tailscale";
# rev = "v${version}";
# sha256 = "sha256-CYNHD6TS9KTRftzSn9vAH4QlinqNgU/yZuUYxSvsl/M=";
# };
# vendorSha256 = "sha256-VW6FvbgLcokVGunTCHUXKuH5+O6T55hGIP2g5kFfBsE=";
# });
# };
#};