Add aacs config script

This commit is contained in:
Greg Hellings
2023-08-21 11:21:04 -05:00
parent 8446d1405e
commit 51460f901f
4 changed files with 14 additions and 2 deletions
+2
View File
@@ -25,6 +25,7 @@ in {
brews = [
"qemu"
"gcc"
"libaacs"
{
name = "libvirt";
restart_service = true;
@@ -33,6 +34,7 @@ in {
];
casks = [
"synology-drive"
"handbrake"
];
};
}
+1
View File
@@ -2,6 +2,7 @@
{
home.packages = with pkgs; [
aacs
brew
];
home.file.".pip/pip.conf".text = (lib.strings.concatStringsSep "\n" [
+10
View File
@@ -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''
+1 -2
View File
@@ -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 ++ [