Compare commits

...

2 Commits

Author SHA1 Message Date
coolneng 628766e55d
Add patched bitwig-studio to packages 2023-03-29 15:03:40 +02:00
coolneng a2458ac39d
Move pipewire custom settings to /etc/pipewire 2023-03-29 15:03:39 +02:00
9 changed files with 49 additions and 8 deletions

3
.gitattributes vendored
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
!*.jar

BIN
assets/bitwig/activation.bwreg (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/bitwig/bitwig-studio.deb (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/bitwig/bitwig.jar (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -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"

View File

@ -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:

View File

@ -38,17 +38,19 @@ in {
};
pulse.enable = true;
wireplumber.enable = true;
config.pipewire-pulse = let
defaultConf = lib.importJSON
"${inputs.nixpkgs}/nixos/modules/services/desktops/pipewire/daemon/pipewire-pulse.conf.json";
in lib.recursiveUpdate defaultConf {
"pulse.properties" = {
"server.address" = [ "unix:native" "tcp:127.0.0.1:4713" ];
};
};
};
security.rtkit.enable = true;
# Enable pipewire-pulse's audio via TCP
environment.etc."pipewire/pipewire-pulse.conf.d/pulse-server.conf".text = ''
pulse.properties = {
server.address = [
"unix:native"
"tcp:127.0.0.1:4713"
]
}
'';
# Set up Mopidy
services.mopidy = {
enable = true;

View File

@ -7,6 +7,13 @@ let
scripts = [ mpvScripts.sponsorblock ];
});
patched-bitwig = bitwig-studio.overrideAttrs (old: rec {
src = ../assets/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