Compare commits

...

2 Commits

Author SHA1 Message Date
coolneng ce846ec68a
Add patched bitwig-studio to packages 2023-03-29 13:46:58 +02:00
coolneng 08306b4749
Move pipewire custom settings to /etc/pipewire 2023-03-28 23:07:48 +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 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" "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": { "nix-index-database": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -114,6 +127,7 @@
"inputs": { "inputs": {
"agenix": "agenix", "agenix": "agenix",
"cyrus-sasl-xoauth2": "cyrus-sasl-xoauth2", "cyrus-sasl-xoauth2": "cyrus-sasl-xoauth2",
"local-bitwig": "local-bitwig",
"nix-index-database": "nix-index-database", "nix-index-database": "nix-index-database",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"openconnect-sso": "openconnect-sso" "openconnect-sso": "openconnect-sso"

View File

@ -27,6 +27,10 @@
url = "github:Mic92/nix-index-database"; url = "github:Mic92/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
local-bitwig = {
url = "path:/home/coolneng/Projects/panacea/assets/bitwig";
flake = false;
};
}; };
outputs = { self, nixpkgs, agenix, nix-index-database, ... }@inputs: outputs = { self, nixpkgs, agenix, nix-index-database, ... }@inputs:

View File

@ -38,17 +38,19 @@ in {
}; };
pulse.enable = true; pulse.enable = true;
wireplumber.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; 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 # Set up Mopidy
services.mopidy = { services.mopidy = {
enable = true; enable = true;

View File

@ -7,6 +7,13 @@ let
scripts = [ mpvScripts.sponsorblock ]; 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 { in {
environment.systemPackages = [ environment.systemPackages = [
# Monitoring # Monitoring
@ -55,6 +62,7 @@ in {
mpc_cli mpc_cli
pulsemixer pulsemixer
easyeffects easyeffects
patched-bitwig
# Productivity # Productivity
zathura zathura
libreoffice-fresh libreoffice-fresh