LoutreOS: downgrade transmission to 4.0.5

This commit is contained in:
nyanloutre 2024-10-20 11:20:01 +02:00
parent 312c1e00a9
commit 032fc56503
5 changed files with 34 additions and 20 deletions

17
flake.lock generated
View File

@ -89,6 +89,22 @@
"type": "indirect"
}
},
"nixpkgs-4a3fc4cf7": {
"locked": {
"lastModified": 1716914467,
"narHash": "sha256-KkT6YM/yNQqirtYj/frn6RRakliB8RDvGqVGGaNhdcU=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "4a3fc4cf736b7d2d288d7a8bf775ac8d4c0920b4",
"type": "github"
},
"original": {
"owner": "nixos",
"repo": "nixpkgs",
"rev": "4a3fc4cf736b7d2d288d7a8bf775ac8d4c0920b4",
"type": "github"
}
},
"nixpkgs-unstable": {
"locked": {
"lastModified": 1727802920,
@ -109,6 +125,7 @@
"dogetipbot-telegram": "dogetipbot-telegram",
"ipmihddtemp": "ipmihddtemp",
"nixpkgs": "nixpkgs",
"nixpkgs-4a3fc4cf7": "nixpkgs-4a3fc4cf7",
"nixpkgs-unstable": "nixpkgs-unstable",
"simple-nixos-mailserver": "simple-nixos-mailserver"
}

View File

@ -2,6 +2,8 @@
inputs = {
nixpkgs.url = "flake:nixpkgs/nixos-24.05";
nixpkgs-unstable.url = "flake:nixpkgs/nixos-unstable";
# transmission 4.0.5 downgrade to fix tracker bug
nixpkgs-4a3fc4cf7.url = "github:nixos/nixpkgs/4a3fc4cf736b7d2d288d7a8bf775ac8d4c0920b4";
simple-nixos-mailserver = {
url = "gitlab:simple-nixos-mailserver/nixos-mailserver/nixos-24.05";
inputs = {
@ -19,7 +21,7 @@
};
};
outputs = { self, nixpkgs, nixpkgs-unstable, simple-nixos-mailserver, dogetipbot-telegram, ipmihddtemp }: {
outputs = { self, nixpkgs, nixpkgs-unstable, nixpkgs-4a3fc4cf7, simple-nixos-mailserver, dogetipbot-telegram, ipmihddtemp }: {
packages.x86_64-linux = (import ./pkgs nixpkgs.legacyPackages.x86_64-linux);
@ -43,9 +45,16 @@
];
};
nixosConfigurations.loutreos = nixpkgs.lib.nixosSystem {
nixosConfigurations.loutreos = nixpkgs.lib.nixosSystem rec {
system = "x86_64-linux";
specialArgs = { inherit nixpkgs-unstable; };
specialArgs = {
pkgs-unstable = import nixpkgs-unstable {
inherit system;
};
pkgs-4a3fc4cf7 = import nixpkgs-4a3fc4cf7 {
inherit system;
};
};
modules = [
nixpkgs-unstable.nixosModules.notDetected
simple-nixos-mailserver.nixosModule

View File

@ -1,8 +0,0 @@
self: super:
{
transmission = (super.transmission.overrideAttrs (oA: {
patches = [];
})).override {
openssl = super.openssl_legacy;
};
}

View File

@ -214,10 +214,6 @@
"40-enp0s21u1".dhcpV4Config.RouteMetric = 1024;
};
nixpkgs.overlays = [
(import ../../overlays/transmission.nix)
];
services.openssh = {
enable = true;
settings = {

View File

@ -1,10 +1,10 @@
{ config, lib, pkgs, nixpkgs-unstable, ... }:
{ config, lib, pkgs, pkgs-unstable, pkgs-4a3fc4cf7, ... }:
{
services = {
transmission = {
enable = true;
package = nixpkgs-unstable.legacyPackages.x86_64-linux.transmission_4;
package = pkgs-4a3fc4cf7.transmission_4;
home = "/var/lib/transmission";
group = "medias";
settings = {
@ -20,17 +20,17 @@
radarr = {
enable = true;
package = nixpkgs-unstable.legacyPackages.x86_64-linux.radarr;
package = pkgs-unstable.radarr;
};
sonarr = {
enable = true;
package = nixpkgs-unstable.legacyPackages.x86_64-linux.sonarr;
package = pkgs-unstable.sonarr;
};
prowlarr.enable = true;
jellyfin = {
enable = true;
package = nixpkgs-unstable.legacyPackages.x86_64-linux.jellyfin;
package = pkgs-unstable.jellyfin;
};
navidrome = {