greyweather cccf509c9f homeFilesFromStringAttrs: full rewrite to fix glaring mistake
also adds `mergeListsToAttrs`, which takes two lists and combines them into key-value pairs as an attrset
2026-08-30 03:27:00 +01:00
2026-08-29 15:28:33 +01:00
2026-08-29 15:26:25 +01:00
2026-08-29 16:09:49 +01:00

nix-helper-flake

A simple flake that provides some basic helper functions as top-level outputs.

Usage:

flake.nix

{
  inputs = {
    ...
    
    helpers = {
      url = "git+https://git.greyweather.dev/greyweather/nix-helper-flake";
      inputs.nixpkgs.follows = "nixpkgs";
    };
  };
}

Then in any module access functions with inputs.helpers.<function-name>, e.g.

{ inputs, config, ... }: {
  time.timeZone = inputs.helpers.mkIfElse (config.networking.hostName == "zohran") "America/New_York" "Europe/London";
}
S
Description
No description provided
Readme GPL-3.0
48 KiB
Languages
Nix 100%