flakelight | 45 Members | |
| https://github.com/nix-community/flakelight | 13 Servers |
| Sender | Message | Time |
|---|---|---|
| 9 Apr 2026 | ||
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 | |
for your nixos config would work | 17:02:23 | |
| hmm i can see about how to make that ergonomic | 17:02:41 | |
| though outside of nixpkgs itself, a lot of modules I've seen do not use an enable option and just add their settings | 17:03:19 | |
| yeah that works, but it's boilerplate I hoped this lib had auto wiring for :) | 17:03:50 | |
| or opt-in atleast | 17:04:12 | |
| potentially could have something that gets added to each nixosConfig | 17:04:20 | |