flakelight | 46 Members | |
| https://github.com/nix-community/flakelight | 13 Servers |
| Sender | Message | Time |
|---|---|---|
| 8 Apr 2026 | ||
| 21:31:59 | ||
| 22:01:00 | ||
| 22:40:08 | ||
| 9 Apr 2026 | ||
| is it possible to import files from the nixDir like flake-parts does it? | 11:12:34 | |
| I'm not sure how flake-parts does it (didn't have auto-importing last time I looked at it) | 16:17:16 | |
| what do you mean by importing files? | 16:17:50 | |
In reply to @accelbread:matrix.orgI mean when you use it with import-tree | 16:31:30 | |
| not sure what thats doing, but in flakelight you can set all the options by loading files from nixDir | 17:51:18 | |
| 27 Apr 2026 | ||
| 15:04:07 | ||
| 29 Apr 2026 | ||
| 00:41:44 | ||
| 1 May 2026 | ||
| 19:37:46 | ||
| 26 May 2026 | ||
| 14:18:44 | ||
| 6 Jun 2026 | ||
| 19:55:13 | ||
| 8 Jun 2026 | ||
| 16:18:19 | ||
| hey, having some trouble getting started with flakelight for my nixos configuration, if someone could point me in the right direction;
I assumed this should be enough of a minimal example on how to get a module with options working, but I just get this error (i.e. from
| 16:21:31 | |
| if I disable the definition of
| 16:25:00 | |
if you nix flake show, you should have nixosModules.test | 16:46:54 | |
| I do, see last block :) | 16:47:15 | |
| in your modules you'll want to import it | 16:47:30 | |
| so in the nixos config, you can add self.nixosModules.test | 16:48:04 | |
| I thought all modules were auto loaded | 16:48:24 | |
| they are loaded into flake outputs | 16:48:43 | |
| i.e. so I wouldn't have to import every single one | 16:48:44 | |
| * i.e. so I wouldn't have to import every single one, one by one | 16:49:05 | |
| you can put a line in your nixos config to import all of them | 16:49:15 | |
| but generally, in flakes with multiple nixos configs, they may use different subsets | 16:50:17 | |
for the single nixos config flake, defs makes sense to do modules = self.nixosModules | 16:51:00 | |
| I want all modules I create to be imported/available, as they will all have options to enable them (like nixpkgs modules do) | 16:51:01 | |
| I'd want this for all nixos configs | 17:00:15 | |
| and tbh the same thing for all home-manager configs too, for homeModules | 17:00:47 | |