From 51460f901f378951297afc3e73358e0fce51b34b Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Mon, 21 Aug 2023 11:21:04 -0500 Subject: [PATCH] Add aacs config script --- darwin/ivr/default.nix | 2 ++ home/hosts/ivr/default.nix | 1 + overlays/aacs.nix | 10 ++++++++++ overlays/default.nix | 3 +-- 4 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 overlays/aacs.nix diff --git a/darwin/ivr/default.nix b/darwin/ivr/default.nix index 0ad1ba5..3678a92 100644 --- a/darwin/ivr/default.nix +++ b/darwin/ivr/default.nix @@ -25,6 +25,7 @@ in { brews = [ "qemu" "gcc" + "libaacs" { name = "libvirt"; restart_service = true; @@ -33,6 +34,7 @@ in { ]; casks = [ "synology-drive" + "handbrake" ]; }; } diff --git a/home/hosts/ivr/default.nix b/home/hosts/ivr/default.nix index 83b3b28..fe4e7cb 100644 --- a/home/hosts/ivr/default.nix +++ b/home/hosts/ivr/default.nix @@ -2,6 +2,7 @@ { home.packages = with pkgs; [ + aacs brew ]; home.file.".pip/pip.conf".text = (lib.strings.concatStringsSep "\n" [ diff --git a/overlays/aacs.nix b/overlays/aacs.nix new file mode 100644 index 0000000..cf123a6 --- /dev/null +++ b/overlays/aacs.nix @@ -0,0 +1,10 @@ +{ pkgs, ... }: + +pkgs.writeShellScriptBin "aacs" '' +set -ex +[ ! -d "''${HOME}/.config/aacs" ] && mkdir -p "''${HOME}/.config/aacs" +cd "''${HOME}/.config/aacs" +[ -f KEYDB.cfg.zip ] && rm -f KEYDB.cfg.zip +curl -L -o KEYDB.cfg.zip "http://fvonline-db.bplaced.net/fv_download.php?lang=eng" +${pkgs.unzip}/bin/unzip KEYDB.cfg.zip +mv keydb.cfg KEYDB.cfg'' diff --git a/overlays/default.nix b/overlays/default.nix index e1c9ca1..970ed45 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -54,8 +54,8 @@ in rec { }) ]; + aacs = prev.callPackage ./aacs.nix {}; brew = prev.callPackage ./homebrew.nix {}; - enwiki-dump = prev.callPackage ./enwiki-dump.nix {}; hms = prev.callPackage ./hms.nix { pkgs = final.pkgs; @@ -64,7 +64,6 @@ in rec { setup-ssh = prev.callPackage ./setup-ssh.nix { pkgs = final.pkgs; }; - xonsh = prev.xonsh.overridePythonAttrs (old: rec{ python3 = final.gregpy; propagatedBuildInputs = with final.gregpy.pkgs; old.propagatedBuildInputs ++ [