| 23 Aug 2021 |
David Arnold (blaggacao) | bud get might work... frommain branch | 03:20:29 |
@gytis-ivaskevicius:matrix.org | https://github.com/divnix/bud/blob/main/flake.nix#L4 | 03:22:10 |
@gytis-ivaskevicius:matrix.org | What's up with these? | 03:22:18 |
@gytis-ivaskevicius:matrix.org | Never seen it being documented anywhere | 03:22:29 |
David Arnold (blaggacao) | It's not, but it works in recent nix... It's dumb,but self-documenting. | 03:23:16 |
David Arnold (blaggacao) | (without flakes enabled, one would have a hard time getting thus far) | 03:23:55 |
@gytis-ivaskevicius:matrix.org | What's not self documenting is substitutes scope - it is probably global? | 03:24:15 |
tomberek | https://github.com/NixOS/nix/blob/master/src/libexpr/flake/config.cc#L32 | 03:24:22 |
tomberek | i don't think it will have any effect | 03:24:56 |
@gytis-ivaskevicius:matrix.org | Also maybe fup should set experimental features like that instead via module? | 03:25:12 |
David Arnold (blaggacao) | whitlist refers to "trusted" (no dialogue) | 03:26:08 |
tomberek | or rather, it gets added to ~/.local/share/nix/trusted-settings.json | 03:26:23 |
David Arnold (blaggacao) | https://github.com/NixOS/nix/blob/7a54b10a8a29dadea2bb2c639a15cfec25a4d38c/src/libexpr/flake/config.cc#L51-L54 | 03:26:28 |
tomberek | documentation about that whole feature seems sparse | 03:27:12 |
@gytis-ivaskevicius:matrix.org | If i were to do a basic nix build - it would use that cachix, right? | 03:27:24 |
@gytis-ivaskevicius:matrix.org | And if i were to switch - would it append it to the nix.conf? | 03:27:59 |
David Arnold (blaggacao) | yes, the main use for me so far has been to make caches declarative and encapsulated.. | 03:28:00 |
David Arnold (blaggacao) | In reply to @gytis-ivaskevicius:matrix.org And if i were to switch - would it append it to the nix.conf? no, it's a runtime setting. | 03:28:17 |
@gytis-ivaskevicius:matrix.org | I see | 03:28:26 |
David Arnold (blaggacao) | (only the trusted bit gets persisted) | 03:28:30 |
tomberek | just tested.... looks like it adds things to trusted settings.. build took about 15 seconds | 03:28:46 |
@gytis-ivaskevicius:matrix.org | Very nice. I wish i knew about this sooner | 03:28:51 |
tomberek | what is bud? | 03:31:59 |
David Arnold (blaggacao) | a module system to create your personal sysctl | 03:32:42 |
David Arnold (blaggacao) | * a module system to create your personal "sysctl" | 03:32:54 |
tomberek | i don't know what that means | 03:33:00 |
David Arnold (blaggacao) | https://github.com/divnix/bud/blob/main/scripts/burn.bash | 03:33:24 |
@gytis-ivaskevicius:matrix.org | Different cli for nix | 03:33:28 |
David Arnold (blaggacao) | (example) | 03:33:28 |
David Arnold (blaggacao) | ... stuff that you have a hard time to remeber when you need to do stuff with devos | 03:34:11 |