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 = [ brews = [
"qemu" "qemu"
"gcc" "gcc"
"libaacs"
{ {
name = "libvirt"; name = "libvirt";
restart_service = true; restart_service = true;
@@ -33,6 +34,7 @@ in {
]; ];
casks = [ casks = [
"synology-drive" "synology-drive"
"handbrake"
]; ];
}; };
} }
+1
View File
@@ -2,6 +2,7 @@
{ {
home.packages = with pkgs; [ home.packages = with pkgs; [
aacs
brew brew
]; ];
home.file.".pip/pip.conf".text = (lib.strings.concatStringsSep "\n" [ 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 {}; brew = prev.callPackage ./homebrew.nix {};
enwiki-dump = prev.callPackage ./enwiki-dump.nix {}; enwiki-dump = prev.callPackage ./enwiki-dump.nix {};
hms = prev.callPackage ./hms.nix { hms = prev.callPackage ./hms.nix {
pkgs = final.pkgs; pkgs = final.pkgs;
@@ -64,7 +64,6 @@ in rec {
setup-ssh = prev.callPackage ./setup-ssh.nix { setup-ssh = prev.callPackage ./setup-ssh.nix {
pkgs = final.pkgs; pkgs = final.pkgs;
}; };
xonsh = prev.xonsh.overridePythonAttrs (old: rec{ xonsh = prev.xonsh.overridePythonAttrs (old: rec{
python3 = final.gregpy; python3 = final.gregpy;
propagatedBuildInputs = with final.gregpy.pkgs; old.propagatedBuildInputs ++ [ propagatedBuildInputs = with final.gregpy.pkgs; old.propagatedBuildInputs ++ [