-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update nixos ucm install #141
Conversation
@dj1ch did you test the nixos instructions on a Chromebook? If you did, can you provide the full nix config? I'm trying the nixos guide and it's compiling stuff for over 10 minutes and taking up a lot of storage space. I think the nixos guide needs some fixing in addition to just updating the commit used. |
@dj1ch what about the issue of "50GB of rebuilds"? |
ok, pretty much did the same thing you did with audio.nix, tested it on my machine and it runs fine. nix garbage collection also freed up some of my storage which was nice. |
A few issues:
|
we can probably try using the latest commit if possible. ill test it and ill let you know. |
bruh why are you still using that repo |
Should we use https://github.com/WeirdTreeThing/alsa-ucm-conf-cros/tree/standalone ? Is that "your upstream" repo for Chromebook audio, and not chromebook-ucm-conf? |
probably this issue sums it up |
Except that we could just use the latest commit of |
@ChocolateLoverRaj this is my current audio.nix, if you want to test with the last alsa-ucm-conf-cros release. im assuming this is how wtt wanted this to be packaged. { config, pkgs, lib, ... }:
let
cb-ucm-conf = pkgs.alsa-ucm-conf.overrideAttrs {
wttsrc = pkgs.fetchurl {
url = "https://github.com/WeirdTreeThing/alsa-ucm-conf-cros/archive/refs/tags/0.4.tar.gz";
hash = "sha256-3D+wUj8O2y+OEcdvoXzmU1IxSoc44qoV5+I5AO1tl2o=";
};
unpackPhase = ''
runHook preUnpack
tar xf "$wttsrc"
runHook postUnpack
'';
installPhase = ''
runHook preInstall
mkdir -p $out/share/alsa
cp -r alsa-ucm*/ucm2 $out/share/alsa
runHook postInstall
'';
};
in
{
# audio modprobes go here
boot = {
extraModprobeConfig = ''
options snd-intel-dspcfg dsp_driver=3
'';
};
environment = {
systemPackages = with pkgs; [
maliit-keyboard # optional
sof-firmware
];
sessionVariables.ALSA_CONFIG_UCM2 = "${cb-ucm-conf}/share/alsa/ucm2";
};
system = {
replaceRuntimeDependencies = [
({
original = pkgs.alsa-ucm-conf;
replacement = cb-ucm-conf;
})
];
};
} |
@dj1ch can u plz replace fetchurl with fetch from github? |
Also include |
I'll test this once it's completely ready |
@WeirdTreeThing I think NixOS audio setup is SOF only atm. Idk if there are even any NixOS users who use AVS Chromebooks. |
there are definitely avs users, iirc at least one having audio issues. @WeirdTreeThing may be referring to this repo, although I could be wrong on that one. for that we may just need to clone and use |
ill add this too |
Not what I was talking about. I meant this |
@WeirdTreeThing is including that one file enough to get AVS to work on Chromebooks on NixOS? |
They'll have to test it out then. Are they on GitHub? |
i could try and ask them about it, it was on the chrultrabook discord server. |
No, all it does is make the mic work. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall weird and possibly broken nix syntax.
Once the replace dependency thing works with Nix flakes I think it would be nice to have a separate repo with Chromebook config and then NixOS Chromebook users can just add that repo. |
It should be possible |
Example config (SOF, cros-standard kb, 24.05) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
L177 onwards is still a confusing mess.
- Merge modprobe part and codeblocks with the wireplumber so we have 1 codeblock for each SOF/AVS1/AVS2 and 23.11/24.05
- Use Collapsing sections for those
Example
Foobar
function logSomething(something) {
console.log('Something', something);
}
<details>
<summary>Example</summary>
Foobar
function logSomething(something) {
console.log('Something', something);
}
</details>
|
the alsa ucm package override is broken aswell https://github.com/ninelore/dots.nix/blob/master/nixos/cros.nix#L4-L18 |
We have decided not to update the page. Instead it will be removed soon. |
@dj1ch it would be nice if you made your own repo with nix files and instructions for Chromebook audio |
perfectly understandable, thank you anyway. |
pretty much the title, just updated the commit hash, and some info on nixos config locations. install script wise nothing seemed to be out of the ordinary, copied the ucm to
/usr/share/alsa
like normal. didn't want the nixos page to become outdated @WeirdTreeThing