Something went wrong. Try again.
My dotfiles for my nixos machines and infra
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465{ pins, lib }:
{ gen_flakes = ( flakes: let wanted = lib.getAttrs flakes pins; in lib.mapAttrs ( name: value: (import pins.flake-compat { src = value; }).outputs ) wanted );
# gen_npins = ( # npins: # let # wanted = lib.getAttrs npins pins; # in # (lib.mapAttrs (name: value: (import value { })) wanted) # );
# new simplified version which allows passing an attr set to the imported package :P gen_npins = ( attrs: lib.mapAttrs ( name: args: import pins.${name} args ) attrs );
# gen_repos = ( # repos: # let # wanted = lib.getAttrs repos pins; # in # (lib.mapAttrs ( # name: value: # import pins.value { # config.allowUnfree = true; # } # ) wanted) # );
nixosHost = { nixpkgs, specialArgs, system, modules, lib ? import "${nixpkgs}/lib", pkgs ? null, ... }: import "${nixpkgs}/nixos/lib/eval-config.nix" { inherit specialArgs; inherit system; inherit modules; inherit lib; inherit pkgs; };}