Modular, context-aware and aspect-oriented dendritic Nix configurations. Discussions: https://oeiuwq.zulipchat.com/join/nqp26cd4kngon6mo3ncgnuap/
at main 31 lines 868 B view raw
1# Example standalone home-manager configurations. 2# These are independent of any host configuration. 3# See documentation at <den>/nix/types.nix 4{ inputs, ... }: 5{ 6 den.homes.x86_64-linux.cam = { }; 7 8 den.homes.aarch64-darwin.bob = { 9 userName = "robert"; 10 aspect = "developer"; 11 }; 12 13 # Example: custom home-manager instantiate for passing extraSpecialArgs. 14 den.homes.x86_64-linux.luke = 15 let 16 osConfig = inputs.self.nixosConfigurations.rockhopper.config; 17 in 18 { 19 # Example: luke standalone-homemanager needs access to rockhopper osConfig. 20 instantiate = 21 { pkgs, modules }: 22 inputs.home-manager.lib.homeManagerConfiguration { 23 inherit pkgs modules; 24 extraSpecialArgs.osConfig = osConfig; 25 }; 26 27 # Example: custom attribute instead of specialArgs 28 programToDependOn = "vim"; 29 }; 30 31}