Nix Flakes | 885 Members | |
| 180 Servers |
| Sender | Message | Time |
|---|---|---|
| 29 Jul 2021 | ||
| 16:58:25 | ||
| Redacted or Malformed Event | 18:42:34 | |
| Can you tell me why I get this
This is what
Here is the content of my flake
you can also have a look at the the here | 18:45:09 | |
| * Can you tell me why I get this
This is what
Here is the content of my flake
you can also have a look at the files here | 18:46:58 | |
| @papojari You cant use current-system in flakes | 18:53:55 | |
In reply to @elonsroadster:matrix.orgthen how am I supposed to rebuild my home-manager configuration | 18:55:34 | |
| I followed Wil Taylor's tutorial on how to move your system into a flake? | 18:56:10 | |
| * I followed Wil Taylor's tutorial on how to move your system into a flake | 18:56:14 | |
| I use home-manager with flakes without much issue | 18:56:18 | |
| you can do: imports = [ home-manager.nixosModule ]; | 18:57:24 | |
| 19:00:38 | ||
In reply to @elonsroadster:matrix.orgwhere am I supposed to put this | 19:00:59 | |
| 30 Jul 2021 | ||
| are let statements not allowed at the toplevel for flakes, for instance
| 02:25:37 | |
| * are let statements not allowed at the toplevel for flakes, for instance
| 02:25:48 | |
| * are let statements not allowed at the toplevel for flakes, for instance
| 02:25:59 | |
| * are let statements not allowed at the toplevel for flakes, for instance
| 02:35:30 | |
| polykernel: no, the top-level of flakes are restricted, as are some other constructs that would cause them to be more difficult to evaluate/cache | 02:55:40 | |
| * polykernel: no, the top-level of flakes are restricted, as are some other constructs that would cause them to be more difficult to evaluate/cache (Refer: https://github.com/NixOS/nix/issues/3966#issuecomment-682497697 ) | 03:04:10 | |
| thanks, I should of known this. I recall reading that computation is forbidden on metadata attributes(https://github.com/NixOS/nix/issues/4945#issuecomment-868572873), but it didn't occur to me at least somehow, it included the top level as well. | 03:12:27 | |
| * thanks, I should of known this. I recall reading that computation is forbidden for metadata attributes(https://github.com/NixOS/nix/issues/4945#issuecomment-868572873), but it didn't occur to me at least somehow, it included the top level as well. | 03:12:38 | |
| * thanks, I should of known this. I recall reading that computation is forbidden for metadata attributes(https://github.com/NixOS/nix/issues/4945#issuecomment-868572873), but it somehow didn't occur to me it included the top level as well. | 03:12:55 | |
| so due to the evaluation constraint of flakes, if I want to do computation for inputs (i.e, dynamically generate inputs),I would have to write a generator for flake.nix using another nix expression? | 03:17:10 | |
| yes, or generate the file in some other way, then evaluate the flake once it is no longer dynamic | 03:17:52 | |
| I see, thanks for the help | 03:20:13 | |
| 08:41:42 | ||
| 31 Jul 2021 | ||
| 17:18:04 | ||
| 1 Aug 2021 | ||
| is there a way to call a flake within a nix expression, would I have to use builtins.getFlake? | 22:06:22 | |
| So I think I want to do something that would generally be regarded as a bad idea. I get that flakes are supposed to be as pure as possible, but I really want to be able to know what directory the flake is defined in, because I want to be able to talk about paths relative to that flake. The reason I want to do this is that I want to add to certain paths in my dotfiles to the global path environment variable. I realize that the nixy way to do this would be to actually add all of the relevant paths/scripts to the nix store and add them that way, but I don't want to have to explicitly rebuild to get new versions of all the scripts every time they are changed. | 22:17:08 | |
| 2 Aug 2021 | ||
| I mean, you can't...? | 00:17:30 | |
In reply to @colemickens:matrix.orgeven with --impure? Is there a way you can pass an argument to a flake | 02:30:12 | |