add ffmpeg to sonarr and radarr
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"];
|
||||
# };
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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; };
|
||||
|
||||
|
||||
@@ -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; };
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user