| 10 Aug 2023 |
CRTified | In reply to @ronnypfannschmidt:matrix.org anyone aware if a way to declare a nixos system thats getting crosscompiled instead of build on binfmt? my x86_64 laptop is a tad slow on building stuff for my rpi andi wonder if i can build it faster that way You could try cherry-picking some packages from e.g. pkgs.pkgsCross.aarch64-multiplatform | 09:59:06 |
CRTified | But cross compiling everything is not necessarily favorable, as you will get cache misses (if you're targeting an architecture that gets cached) | 09:59:48 |
@ronnypfannschmidt:matrix.org | is there a recommendd way to pick as much cached as possible? | 10:01:10 |
CRTified | None that I am aware of | 10:01:57 |
| pbsds changed their display name from pbsds (UTC+1) to pbsds. | 14:55:15 |
| 11 Aug 2023 |
| metasyntactic joined the room. | 15:19:37 |
metasyntactic | I have a weird question about automatic updates with a flake for multiple machines: when I automatically update a flake periodically, it will update and commit a new flake.lock. What is the preferred way to do that for multiple machines that pull from a git repo for the flake to their /etc/NixOS clone of the upstream repo? Not commit flake.lock? Add scripts to constantly pull from master before updating? Have only one machine run flake update, push to master and just have the other machines rebuild periodically? What do people do? | 15:33:14 |
Charles | you could have a scheduled/periodic CI run that bumps flake.lock and then have all machines pull and rebuild | 20:37:43 |
| 13 Aug 2023 |
| @khalilsantana:matrix.org joined the room. | 00:01:02 |
| @10leej:matrix.org joined the room. | 01:24:54 |
@petrichor:envs.net | is there a way to tell nix never to copy a given file into the store from a flake, that isn't dependent on the vcs being used? | 12:24:00 |
@antifuchs:asf.computer | I tend to use the various source-cleaning functions for that, e.g. https://github.com/NixOS/nixpkgs/blob/master/lib/sources.nix#L26 | 16:54:21 |
@antifuchs:asf.computer | requires that any references you make are based on pre-cleaned trees already, so it's not fully easy tbh | 16:54:50 |
@ulli:hrnz.li | In reply to @petrichor:envs.net is there a way to tell nix never to copy a given file into the store from a flake, that isn't dependent on the vcs being used? every file in a flake is in the store. | 20:54:29 |
@ulli:hrnz.li | if it's not in the store, it's not part of the flake | 20:54:38 |
| 14 Aug 2023 |
@petrichor:envs.net | OK, so I want to be able to tell nix that not every file in the source tree while I'm developing it is part of a flake | 09:00:10 |
@petrichor:envs.net | that's easy with git, but I don't know how to do it with any other vcs (or none) | 09:00:38 |
@petrichor:envs.net | e.g. maybe a .flakeignore file, a la .dockerignore? https://docs.docker.com/engine/reference/builder/#dockerignore-file | 16:31:21 |
| 15 Aug 2023 |
| @lenny:flipdot.org changed their display name from Lenny. to Lenny. 7913. | 14:47:42 |
| Christina Sørensen changed their profile picture. | 14:58:02 |
| @10leej:matrix.org left the room. | 19:34:10 |
| 16 Aug 2023 |
lxsameer | hey folks, is it possible to have multiple devShells for a platform? for example, one with glibc and one with musl under linux? | 22:21:46 |
Ilan Joselevich (Kranzes) | Yep, the flake schema is devShells.x86_64-linux.X | 23:04:46 |
Ilan Joselevich (Kranzes) | devShells.x86_64-linux = {
clang = pkgs.mkShell.override { stdenv = pkgs.clangStdenv; } {
packages = [ pkgs.hello ];
};
gcc = pkgs.mkShell {
packages = [ pkgs.cmatrix ];
};
};
| 23:11:05 |
Ilan Joselevich (Kranzes) | devShells.${system} is an attrset | 23:11:17 |
Ilan Joselevich (Kranzes) | what's the musl stdenv that I don't know | 23:11:59 |
CRTified | In reply to @kranzes:matrix.org
devShells.x86_64-linux = {
clang = pkgs.mkShell.override { stdenv = pkgs.clangStdenv; } {
packages = [ pkgs.hello ];
};
gcc = pkgs.mkShell {
packages = [ pkgs.cmatrix ];
};
};
Where's pkgs coming from there? | 23:21:53 |
Ilan Joselevich (Kranzes) | let binding | 23:22:08 |
CRTified | nixpkgs instantiation? | 23:22:10 |
Ilan Joselevich (Kranzes) | inputs.nixpkgs.legacyPackages.x86_64-linux | 23:22:30 |