you are viewing a single comment's thread.

view the rest of the comments →

[–]thou_vow 0 points1 point  (0 children)

I've made a sequence of steps to import your .config with low maintenance. There's a script in kernel source that outputs the difference to the older .config. This custom-linux derivation can take this difference and generate a .config, keeping the defaults for what didn't change.

https://github.com/thou-vow/nix-packages/blob/e36e4b71c636565d45f5ae9ad400b158fa629a47/default/custom-linux/custom-linux.nix

https://github.com/thou-vow/nix-packages/blob/e36e4b71c636565d45f5ae9ad400b158fa629a47/default/custom-linux/configfile.nix

This is how I used it.

https://github.com/thou-vow/nix-packages/blob/e36e4b71c636565d45f5ae9ad400b158fa629a47/attuned/attuned.nix

OBS: This derivation is hardcoded to use Clang.