add ffmpeg to sonarr and radarr

This commit is contained in:
2025-10-22 21:50:35 -05:00
parent 32f37c7c2e
commit b7fb67f939
5 changed files with 38 additions and 25 deletions

View File

@@ -51,11 +51,12 @@
};
stable_pkgs = builtins.mapAttrs (k: v: import nixpkgs {system = v;}) systems;
unstable_pkgs = builtins.mapAttrs (k: v: import nixpkgs-unstable {system = v;}) systems;
current_system = builtins.currentSystem;
in {
nixosConfigurations = {
snowbelle = nixpkgs.lib.nixosSystem {
system = systems.x86_64;
specialArgs = {inherit inputs stable_pkgs unstable_pkgs;};
specialArgs = {inherit inputs stable_pkgs unstable_pkgs current_system;};
modules = [
./hosts/nixos/snowbelle/configuration.nix
inputs.home-manager.nixosModules.default
@@ -73,7 +74,7 @@
darwinConfigurations = {
CEN-IT-07 = nix-darwin.lib.darwinSystem {
system = systems.darwin;
specialArgs = {inherit inputs stable_pkgs unstable_pkgs nix-homebrew;};
specialArgs = {inherit inputs stable_pkgs unstable_pkgs nix-homebrew current_system;};
modules = [
./hosts/darwin/cen-it-07/configuration.nix
inputs.home-manager.darwinModules.default

View File

@@ -18,12 +18,18 @@ in {
boot.kernelModules = ["zfs"];
boot.supportedFilesystems = ["zfs"];
# arc cache size
boot.kernelParams = [ "zfs.zfs_arc_max=12884901888" ];
# pools to import
#boot.zfs.extraPools = [ "holocron" "holocron/archives" "/holocron/media" "/holocron/users" ];
boot.zfs.extraPools = [ "holocron" ];
# enable smart monitoring
services.smartd = {
enable = true;
autodetect = true;
defaults.monitored = "-a -o on -s (S/../.././05|L/../01/./05)";
notifications.test = true;
notifications.mail = {
enable = true;
sender = "zfs@snowbelle.lan";
@@ -48,25 +54,25 @@ in {
# install userspace tools for acl's
environment.systemPackages = with pkgs; [smartmontools];
fileSystems."/holocron" = {
device = "holocron";
fsType = "zfs";
options = ["nofail"];
};
fileSystems."/holocron/archives" = {
device = "holocron/archives";
fsType = "zfs";
options = ["nofail"];
};
fileSystems."/holocron/users" = {
device = "holocron/users";
fsType = "zfs";
options = ["nofail"];
};
fileSystems."/holocron/media" = {
device = "holocron/media";
fsType = "zfs";
options = ["nofail"];
};
# fileSystems."/holocron" = {
# device = "holocron";
# fsType = "zfs";
# options = ["nofail"];
# };
# fileSystems."/holocron/archives" = {
# device = "holocron/archives";
# fsType = "zfs";
# options = ["nofail"];
# };
# fileSystems."/holocron/users" = {
# device = "holocron/users";
# fsType = "zfs";
# options = ["nofail"];
# };
# fileSystems."/holocron/media" = {
# device = "holocron/media";
# fsType = "zfs";
# options = ["nofail"];
# };
};
}

View File

@@ -44,6 +44,9 @@ in
config = lib.mkIf cfg.enable {
# required
environment.systemPackages = with pkgs; [ffmpeg_6-headless];
# declare ${service} group
users.groups.${service} = { gid = lib.mkForce cfg.ids; };

View File

@@ -44,6 +44,9 @@ in
config = lib.mkIf cfg.enable {
# required
environment.systemPackages = with pkgs; [ffmpeg_6-headless];
# declare ${service} group
users.groups.${service} = { gid = lib.mkForce cfg.ids; };

View File

@@ -4,11 +4,12 @@
pkgs,
inputs,
system,
current_system,
...
}: let
#platform = if pkgs.stdenv.hostPlatform.system == "x86_64-darwin" then "darwin" else "nixos";
platform = if builtins.pathExists "/System/Library/CoreServices" then "darwin" else "nixos";
#platform = if current_system "x86_64-darwin" then "darwin" else "nixos";
# general config
home_linux = {
@@ -24,7 +25,6 @@ in
imports = [
inputs.sops-nix.homeManagerModules.sops
./os/${platform}.nix
#./os/nixos.nix
./dots/neovim
./dots/lf
./dots/zsh