22 Aug 2021 |
@timdeh:matrix.org | oh yeah that is a thing | 00:04:55 |
6aa4fd | you guys have a good way of dealing with it? | 00:05:09 |
@timdeh:matrix.org | This overlay essentially get's imported from an alternate nixpkgs:
https://github.com/divnix/devos/blob/main/overlays/overrides.nix | 00:05:47 |
@timdeh:matrix.org | I was wondering if we should expand this at some point to allow for more than a single override source | 00:06:06 |
6aa4fd | pkgs-unstable = import inputs.nixpkgs-unstable {
system = config.nixpkgs.system;
config = { allowUnfree = true; };
};
| 00:08:15 |
6aa4fd | this is what i use, i use a let statement, then i can just add stuff from here directly | 00:08:28 |
6aa4fd | which i like because then i don't have to figure out how my package set is "polluted" when i am just quickly upgrading my version of a program | 00:09:12 |
@timdeh:matrix.org | That's kinda what's going on under the hood, the overlay is just the input for the import essentially | 00:18:42 |
David Arnold (blaggacao) | In reply to @timdeh:matrix.org I was wondering if we should expand this at some point to allow for more than a single override source That's already possible. You can override from any "channel" 😁 | 01:13:08 |
@timdeh:matrix.org | perfect, yeah my perspective on the project is quite stale by now unfortunately 😅 | 03:10:53 |
@timdeh:matrix.org | maybe I should run through the current features and update the docs 😄 | 03:12:05 |
| yusdacra changed their profile picture. | 15:49:09 |
23 Aug 2021 |
yusdacra | I was running someone through devos starting docs, this command in start's index.md seems to not work, and errors with "not a git repository":
nix-shell https://github.com/divnix/devos/archive/core.tar.gz -A shell \
--run "flk get core"
this also doesnt work, says flk is not found:
nix-shell https://github.com/divnix/devos/archive/main.tar.gz -A shell \
--run "flk get main"
| 00:02:04 |
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 |