Skip to content

Commit

Permalink
quine: fix prim static reservation
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramblurr committed Feb 24, 2025
1 parent ced3aaf commit dab820d
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 30 deletions.
43 changes: 25 additions & 18 deletions configs/home-ops/recyclarr-plato.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,25 @@

# Configuration specific to Sonarr
sonarr:
main:
smain:
base_url: http://192.168.10.9:8989
api_key: SONARR_API_KEY
delete_old_custom_formats: true
quality_definition:
type: series
quality_profiles:
- name: SD
reset_unmatched_scores: true
reset_unmatched_scores:
enabled: true
- name: HD-1080p
reset_unmatched_scores: true
reset_unmatched_scores:
enabled: true
- name: WEB-1080p
reset_unmatched_scores: true
reset_unmatched_scores:
enabled: true
- name: Ultra-HD
reset_unmatched_scores: true
reset_unmatched_scores:
enabled: true
custom_formats:
- trash_ids:
# Streaming Services
Expand Down Expand Up @@ -68,9 +72,10 @@ sonarr:
- 06d66ab109d4d2eddb2794d21526d140 # Retags
- 47435ece6b99a0b477caf360e79ba0bb # x265 (HD)

quality_profiles:
assign_scores_to:
- name: HD-1080p
- name: WEB-1080p

- trash_ids:
# Streaming Services
- d660701077794679fd59e8bdf4ce3a29 # AMZN
Expand Down Expand Up @@ -116,12 +121,13 @@ sonarr:
- e1a997ddb54e3ecbfe06341ad323c458 # Obfuscated
- 06d66ab109d4d2eddb2794d21526d140 # Retags
- 47435ece6b99a0b477caf360e79ba0bb # x265 (HD)
quality_profiles:

assign_scores_to:
- name: Ultra-HD

# Configuration specific to Radarr.
radarr:
main:
rmain:
base_url: http://192.168.10.9:7878
api_key: RADARR_API_KEY
delete_old_custom_formats: true
Expand All @@ -130,14 +136,9 @@ radarr:
custom_formats:
- trash_ids:
- ff5bc9e8ce91d46c997ca3ac6994d6f8 # UHD FraMeSToR (set to 0, 1 or 3200)
quality_profiles:
assign_scores_to:
- name: HD-1080p
score: 1
- trash_ids:
- ff5bc9e8ce91d46c997ca3ac6994d6f8 # UHD FraMeSToR (set to 0, 1 or 3200)
quality_profiles:
- name: Ultra-HD
score: 1
- trash_ids:
- 496f355514737f7d83bf7aa4d24f8169 # TrueHD Atmos
- 2f22d89048b01681dde8afe203bf2e95 # DTS X
Expand Down Expand Up @@ -174,7 +175,7 @@ radarr:
- 7357cf5161efbf8c4d5d0c30b4815ee2 # Obfuscated
- ae9b7c9ebde1f3bd336a8cbd1ec4c5e5 # No-RlsGroup removed do avoid multiple downloads
- dc98083864ea246d05a42df0d05f81cc # x265 (720/1080p)
quality_profiles:
assign_scores_to:
- name: HD-1080p
- trash_ids:
- 4b900e171accbfb172729b63323ea8ca # Optional: Multi
Expand All @@ -183,9 +184,15 @@ radarr:
- 58d6a88f13e2db7f5059c41047876f00 # DV
- 55d53828b9d81cbe20b02efd00aa0efd # DV HLG HDR/DV Custom Formats
- a3e19f8f627608af0211acd02bf89735 # DV SDR HDR/DV Custom Formats
quality_profiles:
assign_scores_to:
- name: HD-1080p
score: -10000

- trash_ids:
- ff5bc9e8ce91d46c997ca3ac6994d6f8 # UHD FraMeSToR (set to 0, 1 or 3200)
assign_scores_to:
- name: Ultra-HD
score: 1
- trash_ids:
- 496f355514737f7d83bf7aa4d24f8169 # TrueHD Atmos
- 2f22d89048b01681dde8afe203bf2e95 # DTS X
Expand Down Expand Up @@ -222,7 +229,7 @@ radarr:
- 7357cf5161efbf8c4d5d0c30b4815ee2 # Obfuscated
- ae9b7c9ebde1f3bd336a8cbd1ec4c5e5 # No-RlsGroup removed do avoid multiple downloads
- dc98083864ea246d05a42df0d05f81cc # x265 (720/1080p)
quality_profiles:
assign_scores_to:
- name: Ultra-HD
- trash_ids:
- 4b900e171accbfb172729b63323ea8ca # Optional: Multi
Expand All @@ -231,6 +238,6 @@ radarr:
- 58d6a88f13e2db7f5059c41047876f00 # DV
- 55d53828b9d81cbe20b02efd00aa0efd # DV HLG HDR/DV Custom Formats
- a3e19f8f627608af0211acd02bf89735 # DV SDR HDR/DV Custom Formats
quality_profiles:
assign_scores_to:
- name: Ultra-HD
score: -10000
1 change: 1 addition & 0 deletions hosts/quine/networking.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
]
))
// {
"30-prim".linkConfig.MACAddress = config.repo.secrets.local.prim.mac;
#"30-brprim4" = {
# matchConfig.Name = "brprim4";
# linkConfig.RequiredForOnline = "routable";
Expand Down
Binary file modified hosts/quine/secrets/local.nix
Binary file not shown.
30 changes: 18 additions & 12 deletions modules/services/home-dl.nix
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,10 @@ let
#SystemCallFilter =[ "@system-service" ]; # breaks radarr, need to circle back to this with strace or shh
#MemoryDenyWriteExecute = true; # does not work on Mono apps like sonarr
};
recyclarrYaml = pkgs.writeText "recyclarr.yaml" (
builtins.readFile ../../configs/home-ops/recyclarr-plato.yml
);
recyclarrYaml = pkgs.writeTextFile {
name = "recyclarr.yml";
text = builtins.readFile ../../configs/home-ops/recyclarr-plato.yml;
};
in
{
options.modules.services.home-dl = {
Expand Down Expand Up @@ -210,15 +211,20 @@ in
LOG_LEVEL = "info";
PORT = toString cfg.ports.overseerr;
};
serviceConfig = {
Type = "exec";
StateDirectory = "home-dl/overseerr";
WorkingDirectory = "${pkgs.overseerr}/libexec/overseerr/deps/overseerr";
ExecStart = "${pkgs.overseerr}/bin/overseerr";
BindPaths = [
"/var/lib/home-dl/overseerr/:${pkgs.overseerr}/libexec/overseerr/deps/overseerr/config/"
];
} // sharedServiceConfig // { PrivateMounts = true; };
serviceConfig =
{
Type = "exec";
StateDirectory = "home-dl/overseerr";
WorkingDirectory = "${pkgs.overseerr}/libexec/overseerr/deps/overseerr";
ExecStart = "${pkgs.overseerr}/bin/overseerr";
BindPaths = [
"/var/lib/home-dl/overseerr/:${pkgs.overseerr}/libexec/overseerr/deps/overseerr/config/"
];
}
// sharedServiceConfig
// {
PrivateMounts = true;
};
};

#sops.secrets."home-dl/sonarr/apiKey" = { };
Expand Down

0 comments on commit dab820d

Please sign in to comment.