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;
|
stable_pkgs = builtins.mapAttrs (k: v: import nixpkgs {system = v;}) systems;
|
||||||
unstable_pkgs = builtins.mapAttrs (k: v: import nixpkgs-unstable {system = v;}) systems;
|
unstable_pkgs = builtins.mapAttrs (k: v: import nixpkgs-unstable {system = v;}) systems;
|
||||||
|
current_system = builtins.currentSystem;
|
||||||
in {
|
in {
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
snowbelle = nixpkgs.lib.nixosSystem {
|
snowbelle = nixpkgs.lib.nixosSystem {
|
||||||
system = systems.x86_64;
|
system = systems.x86_64;
|
||||||
specialArgs = {inherit inputs stable_pkgs unstable_pkgs;};
|
specialArgs = {inherit inputs stable_pkgs unstable_pkgs current_system;};
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/nixos/snowbelle/configuration.nix
|
./hosts/nixos/snowbelle/configuration.nix
|
||||||
inputs.home-manager.nixosModules.default
|
inputs.home-manager.nixosModules.default
|
||||||
@@ -73,7 +74,7 @@
|
|||||||
darwinConfigurations = {
|
darwinConfigurations = {
|
||||||
CEN-IT-07 = nix-darwin.lib.darwinSystem {
|
CEN-IT-07 = nix-darwin.lib.darwinSystem {
|
||||||
system = systems.darwin;
|
system = systems.darwin;
|
||||||
specialArgs = {inherit inputs stable_pkgs unstable_pkgs nix-homebrew;};
|
specialArgs = {inherit inputs stable_pkgs unstable_pkgs nix-homebrew current_system;};
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/darwin/cen-it-07/configuration.nix
|
./hosts/darwin/cen-it-07/configuration.nix
|
||||||
inputs.home-manager.darwinModules.default
|
inputs.home-manager.darwinModules.default
|
||||||
|
|||||||
@@ -18,12 +18,18 @@ in {
|
|||||||
boot.kernelModules = ["zfs"];
|
boot.kernelModules = ["zfs"];
|
||||||
boot.supportedFilesystems = ["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
|
# enable smart monitoring
|
||||||
services.smartd = {
|
services.smartd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
autodetect = true;
|
autodetect = true;
|
||||||
defaults.monitored = "-a -o on -s (S/../.././05|L/../01/./05)";
|
defaults.monitored = "-a -o on -s (S/../.././05|L/../01/./05)";
|
||||||
notifications.test = true;
|
|
||||||
notifications.mail = {
|
notifications.mail = {
|
||||||
enable = true;
|
enable = true;
|
||||||
sender = "zfs@snowbelle.lan";
|
sender = "zfs@snowbelle.lan";
|
||||||
@@ -48,25 +54,25 @@ in {
|
|||||||
# install userspace tools for acl's
|
# install userspace tools for acl's
|
||||||
environment.systemPackages = with pkgs; [smartmontools];
|
environment.systemPackages = with pkgs; [smartmontools];
|
||||||
|
|
||||||
fileSystems."/holocron" = {
|
# fileSystems."/holocron" = {
|
||||||
device = "holocron";
|
# device = "holocron";
|
||||||
fsType = "zfs";
|
# fsType = "zfs";
|
||||||
options = ["nofail"];
|
# options = ["nofail"];
|
||||||
};
|
# };
|
||||||
fileSystems."/holocron/archives" = {
|
# fileSystems."/holocron/archives" = {
|
||||||
device = "holocron/archives";
|
# device = "holocron/archives";
|
||||||
fsType = "zfs";
|
# fsType = "zfs";
|
||||||
options = ["nofail"];
|
# options = ["nofail"];
|
||||||
};
|
# };
|
||||||
fileSystems."/holocron/users" = {
|
# fileSystems."/holocron/users" = {
|
||||||
device = "holocron/users";
|
# device = "holocron/users";
|
||||||
fsType = "zfs";
|
# fsType = "zfs";
|
||||||
options = ["nofail"];
|
# options = ["nofail"];
|
||||||
};
|
# };
|
||||||
fileSystems."/holocron/media" = {
|
# fileSystems."/holocron/media" = {
|
||||||
device = "holocron/media";
|
# device = "holocron/media";
|
||||||
fsType = "zfs";
|
# fsType = "zfs";
|
||||||
options = ["nofail"];
|
# options = ["nofail"];
|
||||||
};
|
# };
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,6 +43,9 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
|
||||||
|
# required
|
||||||
|
environment.systemPackages = with pkgs; [ffmpeg_6-headless];
|
||||||
|
|
||||||
# declare ${service} group
|
# declare ${service} group
|
||||||
users.groups.${service} = { gid = lib.mkForce cfg.ids; };
|
users.groups.${service} = { gid = lib.mkForce cfg.ids; };
|
||||||
|
|||||||
@@ -44,6 +44,9 @@ in
|
|||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
|
||||||
|
# required
|
||||||
|
environment.systemPackages = with pkgs; [ffmpeg_6-headless];
|
||||||
|
|
||||||
# declare ${service} group
|
# declare ${service} group
|
||||||
users.groups.${service} = { gid = lib.mkForce cfg.ids; };
|
users.groups.${service} = { gid = lib.mkForce cfg.ids; };
|
||||||
|
|
||||||
|
|||||||
@@ -4,11 +4,12 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
inputs,
|
inputs,
|
||||||
system,
|
system,
|
||||||
|
current_system,
|
||||||
...
|
...
|
||||||
}: let
|
}: 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 builtins.pathExists "/System/Library/CoreServices" then "darwin" else "nixos";
|
||||||
|
#platform = if current_system "x86_64-darwin" then "darwin" else "nixos";
|
||||||
|
|
||||||
# general config
|
# general config
|
||||||
home_linux = {
|
home_linux = {
|
||||||
@@ -24,7 +25,6 @@ in
|
|||||||
imports = [
|
imports = [
|
||||||
inputs.sops-nix.homeManagerModules.sops
|
inputs.sops-nix.homeManagerModules.sops
|
||||||
./os/${platform}.nix
|
./os/${platform}.nix
|
||||||
#./os/nixos.nix
|
|
||||||
./dots/neovim
|
./dots/neovim
|
||||||
./dots/lf
|
./dots/lf
|
||||||
./dots/zsh
|
./dots/zsh
|
||||||
|
|||||||
Reference in New Issue
Block a user