From 77e9df69eccfe3d8d9a4187a1584e9ba584e527f Mon Sep 17 00:00:00 2001 From: victor Date: Sat, 5 Nov 2022 13:26:05 +0100 Subject: [PATCH] deploy overseerr --- nixos/hosts/hades/default.nix | 5 +++ nixos/hosts/hades/overseerr/configuration.nix | 40 +++++++++++++++++++ nixos/hosts/hades/pmm/config/Anime.yml | 1 + nixos/hosts/hades/pmm/config/Movies.yml | 10 ++--- nixos/hosts/thalassa/null/home/default.nix | 2 + 5 files changed, 51 insertions(+), 7 deletions(-) create mode 100644 nixos/hosts/hades/overseerr/configuration.nix diff --git a/nixos/hosts/hades/default.nix b/nixos/hosts/hades/default.nix index a235c00..c0990aa 100644 --- a/nixos/hosts/hades/default.nix +++ b/nixos/hosts/hades/default.nix @@ -39,6 +39,11 @@ ip = "192.168.0.104"; mac = "7A:A3:59:1D:69:07"; } + { + hostname = "overseerr"; + ip = "192.168.0.105"; + mac = "8E:21:7F:88:3A:83"; + } { hostname = "MariaDB"; ip = "192.168.0.109"; diff --git a/nixos/hosts/hades/overseerr/configuration.nix b/nixos/hosts/hades/overseerr/configuration.nix new file mode 100644 index 0000000..490e165 --- /dev/null +++ b/nixos/hosts/hades/overseerr/configuration.nix @@ -0,0 +1,40 @@ +# Edit this configuration file to define what should be installed on +# your system. Help is available in the configuration.nix(5) man page +# and in the NixOS manual (accessible by running ‘nixos-help’). + +{ config, pkgs, ... }: + +{ + imports = [ ]; + + # This value determines the NixOS release from which the default + # settings for stateful data, like file locations and database versions + # on your system were taken. It‘s perfectly fine and recommended to leave + # this value at the release version of the first install of this system. + # Before changing this value read the documentation for this option + # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). + system.stateVersion = "22.11"; # Did you read the comment? + + # Additional packages + environment.systemPackages = with pkgs; [ ]; + + networking.firewall.allowedTCPPorts = [ 5055 ]; + + virtualisation.podman.enable = true; + virtualisation.oci-containers = { + backend = "podman"; + containers = { + overseerr = { + image = "ghcr.io/sct/overseerr:1.30.1"; + environment = { + LOG_LEVEL = "debug"; + TZ = "Europe/Amsterdam"; + }; + ports = [ + "5055:5055" + ]; + volumes = [ "/var/lib/overseerr/config:/app/config" ]; + }; + }; + }; +} diff --git a/nixos/hosts/hades/pmm/config/Anime.yml b/nixos/hosts/hades/pmm/config/Anime.yml index e4b49d7..3eb25d0 100644 --- a/nixos/hosts/hades/pmm/config/Anime.yml +++ b/nixos/hosts/hades/pmm/config/Anime.yml @@ -5,6 +5,7 @@ templates: collection_order: alpha collection_mode: hide sync_mode: sync + sort_title: zz_<> collections: Cars: diff --git a/nixos/hosts/hades/pmm/config/Movies.yml b/nixos/hosts/hades/pmm/config/Movies.yml index 2f0d898..e1eab28 100644 --- a/nixos/hosts/hades/pmm/config/Movies.yml +++ b/nixos/hosts/hades/pmm/config/Movies.yml @@ -3,7 +3,7 @@ templates: optional: - company tmdb_company: <> - sort_title: +1_<> + sort_title: <> sync_mode: sync smart_label: release.desc Set: @@ -31,13 +31,9 @@ collections: poster: https://theposterdb.com/api/assets/164120 Studio Ghibli: template: { name: Studio, company: 10342 } + url_poster: https://theposterdb.com/api/assets/393 summary: Studio Ghibli Inc. is a Japanese animation film studio headquartered in Koganei, Tokyo. The studio is best known for its animated feature films, and has also produced several short films, television commercials, and one television film. The studio’s mascot and most recognizable symbol is the character, Totoro, a giant cat-like spirit from the 1988 classic, My Neighbor Totoro. Pixar: template: { name: Studio, company: 3 } + url_poster: https://theposterdb.com/api/assets/18894 summary: Pixar Animation Studios, commonly known as Pixar, is an American computer animation studio based in Emeryville, California, a subsidiary of Disney Studios Content owned by The Walt Disney Company. Pixar began in 1979 as part of the Lucasfilm computer division, known as the Graphics Group, before its spin-off as a corporation on February 3, 1986, with funding from Apple co-founder Steve Jobs, who became its majority shareholder. Disney purchased Pixar in 2006 at a valuation of $7.4 billion by converting each share of Pixar stock to 2.3 shares of Disney stock, a transaction that resulted in Jobs becoming Disney's largest single shareholder at the time. Pixar is best known for its feature films technologically powered by RenderMan, the company's own implementation of the industry-standard RenderMan Interface Specification image-rendering application programming interface. Luxo Jr., a desk lamp from the studio's 1986 short film of the same name, is the studio's mascot. - DC Extended Universe: - template: { name: Studio } - imdb_list: https://www.imdb.com/list/ls077827588/ - url_poster: https://images.theposterdb.com/prod/public/images/posters/optimized/collections/460717/dj5QiI3bseKx31j5JLM0PclTXC1KSuRPflLC4DP0.webp - summary: The DC Extended Universe (DCEU) is a media franchise and shared universe centered on superheros from DC Comics. - collection_order: release diff --git a/nixos/hosts/thalassa/null/home/default.nix b/nixos/hosts/thalassa/null/home/default.nix index 57bb74d..9f6026b 100644 --- a/nixos/hosts/thalassa/null/home/default.nix +++ b/nixos/hosts/thalassa/null/home/default.nix @@ -97,6 +97,8 @@ in { enableAliases = true; }; + programs.bat.enable = true; + programs.git = { enable = true; package = pkgs.gitAndTools.gitFull;