Nix Flakes | 899 Members | |
| 184 Servers |
| Sender | Message | Time |
|---|---|---|
| 1 Aug 2023 | ||
In reply to @avaq:matrix.orgnixpkgs is a single flake. I'd create a single flake for the whole repo. There's a downside to that, however: all packages in that flake will likely depend on one nixpkgs version. updating the lock will update nixpkgs for all these packages. on the other hand, it's possible to have multiple nixpkgs in a flake, so it isn't a big problem | 16:09:32 | |
| Thanks! Yeah I figured that once that problem presents itself I'll just add a second nixpkgs input. | 16:39:26 | |
| inputs.nixpkgsWhereCowsayDoesThatWeirdThingINeedForServiceFoo | 16:40:20 | |
| So I did go for a single flake for the whole repo, it seems very natural | 16:42:38 | |
| 18:05:22 | ||
| 18:25:04 | ||
| 2 Aug 2023 | ||
| 23:42:19 | ||
| 3 Aug 2023 | ||
| 16:19:58 | ||
| 21:15:23 | ||
| 4 Aug 2023 | ||
| 12:35:55 | ||
| 14:12:42 | ||
| 5 Aug 2023 | ||
| So how do you check for updates on a flake based system? Also, how do you update? | 02:25:00 | |
hopland: update: nix flake updatecheck for updates, run it after nix flake update but before building the system: nix store diff-closures --derivation /run/current-system .#nixosConfiguration.$HOST.config.system.build.toplevel (this is at least one way) | 02:55:46 | |
* hopland: update: nix flake updatecheck for updates, run it after nix flake update but before building the system: nix store diff-closures --derivation /run/current-system .#nixosConfigurations.$HOST.config.system.build.toplevel (this is at least one way) | 02:55:58 | |
| 11:59:54 | ||
| 21:14:01 | ||
| 21:14:05 | ||
| 6 Aug 2023 | ||
| is there any easy way to have a flake refer to its incoming location and/or its store copy in a safe manner - im on a host system with fedora that shares a multi-user nix store with my nixos root and i want to automate a nixos-enter jump that invokes nixos-rebuild boot with the flake (so i can install system updates on my nix from my fedora) | 16:29:55 | |
| self.outPath | 17:39:30 | |
| 19:24:28 | ||
| 7 Aug 2023 | ||
| 09:41:26 | ||
| 8 Aug 2023 | ||
| 15:46:04 | ||
| 20:26:26 | ||
| 9 Aug 2023 | ||
| 03:10:58 | ||
| 08:06:03 | ||
| so i've noticed that for a flake version-controlled with git, only files that are tracked by git are copied to the store, but if i use mercurial all files are copied regardless of whether mercurial knows about them or not | 13:08:49 | |
| is git the only "fully supported" dvcs in this way, or are there alternatives? mercurial is the only other one listed in the flakes manual as valid for a flake url | 13:11:28 | |
| i guess what i really want to know is: how can i tell nix that there are certain files in a flake on my local disk that should never be copied to the store, regardless of what vcs i'm using (or none)? | 14:13:21 | |
i wonder if .hgignore is respected, for git all added files are copied over , but mercurial doesnt have a index | 14:26:07 | |
nope, sadly .hgignore is ... ignored ☹️ | 14:38:00 | |