mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-18 07:24:10 +01:00
10 lines
672 B
Markdown
10 lines
672 B
Markdown
# Library
|
|
|
|
Some helper functions, used by `flake.nix` to reduce code duplication and make it easier to add new machines:
|
|
|
|
1. `attrs.nix`: A set of functions to manupulate attribute sets.
|
|
1. `macosSystem.nix`: A function to generate config(attribute set) for macOS([nix-darwin](https://github.com/LnL7/nix-darwin)).
|
|
1. `nixosSystem.nix`: A function to generate config(attribute set) for NixOS.
|
|
1. `colmenaSystem.nix`: A function that generate config(another function) for remote deployment using [colmena](https://github.com/zhaofengli/colmena).
|
|
1. `default.nix`: import all the above functions, and some custom useful functions, and export them as a single attribute set.
|