A collection of shorter thoughts, quick updates, and things I’ve learned that don’t warrant a full blog post.
`nix flake info`
Nix CLI’s flake info subcommand is great to find duplicate inputs, nix-melt is too much manual labor.
A collection of shorter thoughts, quick updates, and things I’ve learned that don’t warrant a full blog post.
Nix CLI’s flake info subcommand is great to find duplicate inputs, nix-melt is too much manual labor.
In Jetpack Compose you can use rememberUpdatedState to capture values that may update over time but without a full restart of the rememberUpdatedState function.
In a Nix REPL you can run :bl inputs.nixpkgs.legacyPackages.aarch64-linux.pkgs.attic-server to build the derivation and create a result link. Can also run :bl nixosConfigurations.ryzenbox.pkgs.attic-client.
FFmpeg lets you mix videos together from different sources based on a zero-indexed map of input files. For the diagram given below, you can do ffmpeg -i input_0.mp4 -i input_1.mp4 -c copy -map 0:v:0 -map 1:a:0 -shortest output.mp4 to take the video from input_0.mp4 and audio from input_1.mp4.
FFmpeg has support for concatenating files with no re-encoding # file_list.txt file 'source1.mp4' file 'source2.mp4' $ ffmpeg -f concat -safe 0 -i file_list.txt -c copy output.mp4
Miniflux requires setting up individual credentials for each integration, and the password can not be the same as your normal account password.
NixOS has a module option in systemd-boot that automatically configures boot entries for Windows without requiring me to copy over the EFI folder [ref]
You can use touch -r old new to copy the timestamp of an older file in a newly created file. Useful for doing bulk re-encodes with FFmpeg that benefit from preserving timestamps.
The default Material3 Scaffold component adds the height of the bottomBar parameter to the inner padding which resulted in the issues I was having with the floating navigation bar. Removing all calls to Modifier.padding and wiring down the padding parameter as contentPadding resolved the problem.
GNOME does not have support to move partitions around. GParted requires the presence of ntfs3g on $PATH to enable NTFS support. When moving Windows installations across disks the reason why stuff doesn’t boot is that the Windows EFI for the old disk is sitting around in your /boot partition so the systemd-boot option I pick tries to boot into a non-existent installation. The fix for this is to go and delete the Microsoft folder from /boot/EFI and replace it with the one in your new disk and it’ll be fixed. ...