Nix Flakes | 897 Members | |
| 183 Servers |
| Sender | Message | Time |
|---|---|---|
| 16 May 2023 | ||
In reply to @gastove:matrix.orgdid you add flake.nix to your git repo with git add flake.nix? | 16:54:34 | |
| not so sure about that, but maybe we can continue another time. gotta run. talk to you later :-) | 16:54:52 | |
In reply to @netpleb:matrix.orgI haven't yet, but I'm happy to try it. Is the goal to have a clean working tree? I'm the only Nix user at my company so far, so I was planning on adding my flake to my .gitignore. | 16:56:06 | |
In reply to @gastove:matrix.orgas I understand it, which is only barely, part of the point of flakes is to have things extremely hermetic which means that the "flake commands" like nix flake and other things that use flakes like nixos-rebuild switch --flake ... essentially look in a git repo and treat it as the only thing that exists. So that means that if git does not know about it, then it does not exist inside the world of flakes either. | 16:57:43 | |
| Oh huh. | 16:58:02 | |
| Lemme see then | 16:58:11 | |
| I found following part 3 of this tutorial quite helpful: https://www.tweag.io/blog/2020-07-31-nixos-flakes/ | 16:58:48 | |
| Oh ha, yep, this is now working much better. Wild. | 16:59:05 | |
| Ah, I'll read that more carefully -- that's the tutorial series I've been working from, but I must have missed needing to have this in git. | 16:59:39 | |
| Thank you! This does seem to have Done It. | 17:00:29 | |
ok, what I ended up doing is replacing that line 57 with default = pkgs.callPackage ./package-ssh-chat.nix {}; and it seems to work now | 17:52:14 | |
| feels clunky but progress at least | 17:52:37 | |
| 20:13:21 | ||
| 20:21:00 | ||
| oh, yes, I didn't see line 57 before ... hmm ... so I can see how reaching through the module boundary like this (i.e. going around the module-provided so if this was just about | 21:19:09 | |
In reply to @bendlas:matrix.orgthanks for your thoughts on it regardless. So that I better understand, are you saying that my "solution" might end up causing issues? or are you saying that the original problem of not being able to access self from the separate file is itself the problem and that ideally I should be able to just access self somehow? | 23:29:26 | |
| 17 May 2023 | ||
I'm saying that your solution may actually be more correct, because you should usually access every package within a module through the module's pkgs argument. | 11:04:27 | |
| but as you may already have noticed: I'm pretty much a noob with flakes, so take my opinion on this with a grain of salt | 11:05:37 | |
| got it, ok, thanks again! i learned some things :) | 16:15:58 | |
| 21:12:00 | ||
| 18 May 2023 | ||
| 00:57:58 | ||
| Is there some flake input URL syntax for the latest tag of a git repo? For example, I have
Instead of | 01:19:45 | |
In reply to@hab25:matrix.orgYou can just remove the ?ref=v9.5 part to get the latest commit | 02:18:04 | |
So just url = "github:PatrickF1/fzf.fish"; | 02:18:28 | |
In reply to @pyrox:pyrox.devthanks; I prefer following tags for more stability | 14:13:34 | |
| 19 May 2023 | ||
| 15:50:30 | ||
| howdy, i have a flake i use for a devShell containing dotnet, nuget, and omnisharp, and i'm wondering how i can prevent these dependencies from clogging up
one thing i've been suggested is to use https://github.com/queer/boxxy, which i'm not against, but i would prefer something native to Nix. supposedly i can fiddle with | 18:40:24 | |
| hmm, I don't think this is really within the domain of Nix, to be honest - as it essentially concerns runtime isolation, and Nix only really concerns itself with build/install-time stuff | 18:50:49 | |
| both in the sense that I don't think Nix really has tools for this, and in the sense that using arbitrary tools like boxxy wouldn't interfere with Nix usage | 18:51:16 | |
| on NixOS, you could use systemd's container spawn stuff and there's even some declarative NixOS container stuff, but that doesn't help you outside of NixOS, and that's more meant for services than for on-demand applications I think | 18:52:38 | |