Vic's *Nix config.

Change `.provides.` -> `._.` in readme (#288)

authored by

Peter Esselius and committed by
GitHub
6ed7a82f 8c8c7b82

+7 -7
+7 -7
README.md
··· 38 38 39 39 ### 1. Custom Namespace ([`vix.nix`](modules/community/vix.nix)) 40 40 ```nix 41 - den.aspects.vix.provides = { }; # you can also use flake.aspects to expose all to flake.modules. 42 - flake.vix = config.den.aspects.vix.provides; # I just want to expose the vix aspect tree. 43 - _module.args.vix = config.den.aspects.vix.provides; 41 + den.aspects.vix = { }; # you can also use flake.aspects to expose all to flake.modules. 42 + flake.vix = config.den.aspects.vix._; # I just want to expose the vix aspect tree. 43 + _module.args.vix = config.den.aspects.vix._; 44 44 ``` 45 45 46 46 Creates `vix.*` namespace. Everything under `vix` belongs to this config. ··· 75 75 76 76 ### 4. Aspect Composition with Variants ([`nargun.nix`](modules/hosts/nargun.nix)) 77 77 ```nix 78 - vix.nargun.provides = { 78 + vix.nargun._ = { 79 79 base.includes = [ vix.dev-laptop ]; 80 80 hw.includes = [ vix.kvm-amd vix.niri-desktop ]; 81 81 }; ··· 89 89 ```nix 90 90 vix.vic._.common-host-env = { host, user }: { 91 91 includes = map (f: f { inherit host user; }) [ 92 - vix.vic.provides.admin 93 - vix.vic.provides.fish 92 + vix.vic._.admin 93 + vix.vic._.fish 94 94 // ... more aspects 95 95 ]; 96 96 }; ··· 99 99 100 100 ### 6. Multi-Class Aspects ([`fish.nix`](modules/vic/fish.nix)) 101 101 ```nix 102 - vix.vic.provides.fish = { user, ... }: { 102 + vix.vic._.fish = { user, ... }: { 103 103 nixos.users.users.${user.userName}.shell = pkgs.fish; 104 104 homeManager.programs.fish.enable = true; 105 105 };