Commit graph

14 commits

Author SHA1 Message Date
XYenon
f7f356b185 refactor: restructure module outputs under repos.${repo}.modules.<class> 2026-03-27 22:23:43 +08:00
XYenon
ee7462f2c6 feat: expose nixosModules, homeModules, darwinModules, flakeModules as flake outputs
Closes #799.

Adds standard flake outputs so modules can be accessed via:
  nur.nixosModules.repos.${repo}.${module}
  nur.homeModules.repos.${repo}.${module}
  nur.darwinModules.repos.${repo}.${module}
  nur.flakeModules.repos.${repo}.${module}

nixosModules falls back to the legacy 'modules' attribute when
'nixosModules' is not present in a repo. Missing attributes in
any repo gracefully return {}.

Amp-Thread-ID: https://ampcode.com/threads/T-019d1fc6-58ae-750f-bac6-f5e66598ddfc
Co-authored-by: Amp <amp@ampcode.com>
2026-03-24 20:55:46 +08:00
Pablo Ovelleiro Corral
fb7120e446
Fix deprecation warning (#1032)
When updating a system which uses NUR, a deprecation warning is printid. This fixes the deprecation so the new overlays structure is used
2025-12-05 17:29:47 -08:00
awwpotato
4637df19ec remove dependence on treefmt-nix 2025-07-05 09:52:16 -04:00
Kamal Al Marhubi
96d9df0d82 flake: Add darwin module output
Allow using NUR from nix-darwin flake configs.
2025-03-23 21:04:36 -07:00
Gavin John
201d665744 Fix incorrect class for home manager in flake.nix 2024-12-07 15:31:45 +00:00
Moraxyc
e779aeb96d
fix: attribute 'throw' missing 2024-12-07 14:35:03 +08:00
Gavin John
ecb7137813 flakeify NUR 2024-12-07 00:23:18 +00:00
Gavin John
4021fa3c83 treewide: nixfmt 2024-11-22 19:10:50 +00:00
Jörg Thalheim
b518f57f2f flake.nix: export hmModules.nur 2022-09-07 12:02:17 +02:00
Jörg Thalheim
d721827397
flake.nix: add overlay less method to use nixosModules.nur 2022-06-03 11:16:18 +02:00
Jörg Thalheim
4dd0683963
fix flake.nix usage
Maybe the schema was changed but assigning nixpkgs in the current no longer works.
2020-07-06 11:16:45 +01:00
Sergey Makarov
e743da65b1
Remove attribute 'epoch' from flake.nix 2020-05-30 12:43:11 +03:00
Timothy DeHerrera
106a8b2687
add flake.nix 2020-02-01 20:25:10 -07:00