diff --git a/flake.lock b/flake.lock index 09ada44..df91ec8 100644 --- a/flake.lock +++ b/flake.lock @@ -324,6 +324,24 @@ "type": "github" } }, + "flake-utils_2": { + "inputs": { + "systems": "systems_4" + }, + "locked": { + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, "fonts": { "flake": false, "locked": { @@ -727,6 +745,27 @@ "url": "https://git.lebubu.org/jawz/scripts.git" } }, + "lidarr-mb-gap": { + "inputs": { + "flake-utils": "flake-utils_2", + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1762882489, + "narHash": "sha256-YFk5GkD7TkIMbcnJzFz+IRN4vH7QJSRphpS3zje3PRU=", + "ref": "refs/heads/main", + "rev": "35e6c7e330868b00e7c8dbc878db776ba01f719d", + "revCount": 11, + "type": "git", + "url": "https://git.lebubu.org/vibe-coded/lidarr-mb-gap.git" + }, + "original": { + "type": "git", + "url": "https://git.lebubu.org/vibe-coded/lidarr-mb-gap.git" + } + }, "nix-gaming": { "inputs": { "flake-parts": "flake-parts_2", @@ -1010,6 +1049,7 @@ "home-manager": "home-manager", "hyprland": "hyprland", "jawz-scripts": "jawz-scripts", + "lidarr-mb-gap": "lidarr-mb-gap", "nix-gaming": "nix-gaming", "nixos-generators": "nixos-generators", "nixpkgs": "nixpkgs_2", @@ -1057,7 +1097,7 @@ "nixpkgs" ], "nur": "nur_2", - "systems": "systems_4", + "systems": "systems_5", "tinted-foot": "tinted-foot", "tinted-kitty": "tinted-kitty", "tinted-schemes": "tinted-schemes", @@ -1155,6 +1195,21 @@ "type": "github" } }, + "systems_5": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, "tinted-foot": { "flake": false, "locked": { diff --git a/flake.nix b/flake.nix index a710fe0..f6dc508 100644 --- a/flake.nix +++ b/flake.nix @@ -25,6 +25,10 @@ url = "git+https://git.lebubu.org/jawz/scripts.git"; inputs.nixpkgs.follows = "nixpkgs"; }; + lidarr-mb-gap = { + url = "git+https://git.lebubu.org/vibe-coded/lidarr-mb-gap.git"; + inputs.nixpkgs.follows = "nixpkgs"; + }; nur = { url = "github:nix-community/nur"; inputs.nixpkgs.follows = "nixpkgs"; diff --git a/hosts/server/configuration.nix b/hosts/server/configuration.nix index 14f6ae1..a41d232 100644 --- a/hosts/server/configuration.nix +++ b/hosts/server/configuration.nix @@ -7,6 +7,7 @@ }: { imports = [ + inputs.lidarr-mb-gap.nixosModules.lidarr-mb-gap ./hardware-configuration.nix ../../config/base.nix ../../config/stylix.nix @@ -65,11 +66,34 @@ users.users.jawz.packages = builtins.attrValues { inherit (pkgs) podman-compose attic-client; }; - services.btrfs.autoScrub = { - enable = true; - fileSystems = [ - "/" - "/srv/pool" - ]; + services = { + btrfs.autoScrub = { + enable = true; + fileSystems = [ + "/" + "/srv/pool" + ]; + }; + lidarr-mb-gap = { + enable = true; + package = inputs.lidarr-mb-gap.packages.${pkgs.system}.lidarr-mb-gap; + reportDir = "/var/lib/lidarr-mb-gap/reports"; + envFile = "/var/lib/lidarr-mb-gap/.env"; + runInterval = "weekly"; + syncToVPS = false; + # vpsHost = "user@vps"; + # vpsPath = "/var/www/html"; + # sshKeyFile = "/var/lib/lidarr-mb-gap/.ssh/id_ed25519"; + # sshKnownHosts = { + # vps = { + # hostNames = [ + # "vps" + # "vps.example.com" + # "1.2.3.4" + # ]; + # publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAI..."; + # }; + # }; + }; }; }