fix overlay

This commit is contained in:
Chris Dombroski 2024-08-20 12:25:27 -04:00
parent b94eb3c95b
commit d596295ae5
3 changed files with 10 additions and 12 deletions

View file

@ -30,12 +30,7 @@
outputs = inputs@{ self, nixpkgs, flake-utils, home-manager, deploy-rs
, impermanence, stylix, nixos-hardware, nixunstable, ... }:
let
pkgs = import nixpkgs {
system = "x86_64-linux";
overlays = [
(import ./overlays/recyclarr.nix)
];
};
pkgs = import nixpkgs { system = "x86_64-linux"; };
aarch64Pkgs = import nixpkgs { system = "aarch64-linux"; };
pkgs-unstable = import nixunstable { system = "x86_64-linux"; };
deployAarch64Pkgs = import nixpkgs {

View file

@ -9,6 +9,9 @@
settings = { experimental-features = [ "nix-command" "flakes" ]; };
optimise.automatic = true;
};
nixpkgs.overlays = [
(import ../../overlays/recyclarr.nix)
];
system.autoUpgrade = {
enable = true;
flake = "git+https://git.icanttype.org/cdombroski/nix-configs.git";

View file

@ -1,15 +1,15 @@
{ config, pkgs, fetchurl, ...}:
self: super:
final: prev:
let
os = "linux";
arch = "x64";
hash = "sha256:04vg1s86krg7baifcpnqr5zg6jd6nfw0jhjsq09zzpxwg5skxlf7";
version = "7.2.1";
in
{
recyclarr = super.recyclarr.overrideAttrs (old: rec {
version = "7.2.1";
recyclarr = prev.recyclarr.overrideAttrs (old: {
inherit version;
name = "recyclarr-${version}";
hash = "sha256:04vg1s86krg7baifcpnqr5zg6jd6nfw0jhjsq09zzpxwg5skxlf7";
src = fetchurl {
src = prev.fetchurl {
url = "https://github.com/recyclarr/recyclarr/releases/download/v${version}/recyclarr-${os}-${arch}.tar.xz";
inherit hash;
};