diff --git a/.gitattributes b/.gitattributes index d65a898..5c8c47e 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,4 @@ secrets/soundcloud_token filter=git-crypt diff=git-crypt +assets/bitwig/activation.bwreg filter=lfs diff=lfs merge=lfs -text +assets/bitwig/bitwig-studio.deb filter=lfs diff=lfs merge=lfs -text +assets/bitwig/bitwig.jar filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..27620d5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +!*.jar diff --git a/assets/bitwig/activation.bwreg b/assets/bitwig/activation.bwreg new file mode 100644 index 0000000..b90218b --- /dev/null +++ b/assets/bitwig/activation.bwreg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5a94455cac64f5be4eedb41950b17983154af3f07c9a6055c37b8c1ce24ca4b7 +size 5 diff --git a/assets/bitwig/bitwig-studio.deb b/assets/bitwig/bitwig-studio.deb new file mode 100644 index 0000000..a8bd73d --- /dev/null +++ b/assets/bitwig/bitwig-studio.deb @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e7165325cdcd3214a79ab865b3b102f85e603e81cd9868a1f59c22e47760e55f +size 261732492 diff --git a/assets/bitwig/bitwig.jar b/assets/bitwig/bitwig.jar new file mode 100644 index 0000000..83f54e7 --- /dev/null +++ b/assets/bitwig/bitwig.jar @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0822724ab34da14355d99b5e20e0bf3889cc135dba8dd509ed5762190692d00f +size 29186263 diff --git a/flake.lock b/flake.lock index 9678bd8..7a09cec 100644 --- a/flake.lock +++ b/flake.lock @@ -59,6 +59,19 @@ "type": "github" } }, + "local-bitwig": { + "flake": false, + "locked": { + "lastModified": 0, + "narHash": "sha256-n8gLgN6QEVuHe30kQZ/gCWInDHwDpPWOB5RgVh1tSt8=", + "path": "/home/coolneng/Projects/panacea/assets/bitwig", + "type": "path" + }, + "original": { + "path": "/home/coolneng/Projects/panacea/assets/bitwig", + "type": "path" + } + }, "nix-index-database": { "inputs": { "nixpkgs": [ @@ -114,6 +127,7 @@ "inputs": { "agenix": "agenix", "cyrus-sasl-xoauth2": "cyrus-sasl-xoauth2", + "local-bitwig": "local-bitwig", "nix-index-database": "nix-index-database", "nixpkgs": "nixpkgs", "openconnect-sso": "openconnect-sso" diff --git a/flake.nix b/flake.nix index a29fd45..8929a33 100644 --- a/flake.nix +++ b/flake.nix @@ -27,6 +27,10 @@ url = "github:Mic92/nix-index-database"; inputs.nixpkgs.follows = "nixpkgs"; }; + local-bitwig = { + url = "path:/home/coolneng/Projects/panacea/assets/bitwig"; + flake = false; + }; }; outputs = { self, nixpkgs, agenix, nix-index-database, ... }@inputs: diff --git a/modules/software.nix b/modules/software.nix index 808f737..1f20f89 100644 --- a/modules/software.nix +++ b/modules/software.nix @@ -7,6 +7,13 @@ let scripts = [ mpvScripts.sponsorblock ]; }); + patched-bitwig = bitwig-studio.overrideAttrs (old: rec { + src = "${inputs.local-bitwig}/bitwig-studio.deb"; + postInstall = '' + cp -r ${inputs.local-bitwig}/bitwig.jar $out/libexec/bin/bitwig.jar + ''; + }); + in { environment.systemPackages = [ # Monitoring @@ -55,6 +62,7 @@ in { mpc_cli pulsemixer easyeffects + patched-bitwig # Productivity zathura libreoffice-fresh