commit | 2efb698d22584268e4cabe545bb76ee5d80310a7 | [log] [tgz] |
---|---|---|
author | Serge Bazanski <q3k@hackerspace.pl> | Sat Oct 03 00:13:45 2020 +0200 |
committer | q3k <q3k@hackerspace.pl> | Sat Oct 03 14:57:34 2020 +0000 |
tree | 40854b0fe5e2af14ba5dee34cc2ae41294d375c4 | |
parent | fbe234bdb24a7aae74dec38547b05eed3cd97a82 [diff] |
*: add default.nix/readTree This makes all Nix files addressable from root by file path. For instance, if a file is located in //foo/bar:baz.nix containing: { pkgs, ... }: pkgs.stdenv.mkDerivation { pname = "foo"; # ... } You can then do: nix-build -A foo.bar.baz All nix files loaded this way must be a function taking a 'config' attrset - see nix/readTree.nix for more information. Currently the config attrset contains the following fields: - hscloud: the root of the hscloud repository itself, which allows for traversal via readTree (eg. hscloud.foo.bar.baz) - pkgs: nixpkgs - pkgsSrc: nixpkgs souce/channel, useful to load NixOS modules. - lib, stdenv: lib and stdenv from pkgs. Change-Id: Ieaacdcabceec18dd6c670d346928bff08b66cf79
hscloud
is the main monorepo of the Warsaw Hackerspace infrastructure code.
Any time you see a //path/like/this
, it refers to the root of hscloud, ie. the path path/like/this
in this repository. Perforce and/or Bazel users should feel right at home.
For a pleaseant web viewing experience, see this documentation in hackdoc. This will allow you to read this markdown file (and others) in a pretty, linkable view.
See //doc/codelabs for tutorials on how to use hscloud.
If you want to browse the source of hscloud
in a web browser, use cs.hackerspace.pl.
If you want some other help, talk to q3k, informatic or your therapist.
Directories you should care about:
k0.hswaw.net
)Unless noted otherwise, code in hscloud is licensed under the BSD 0-clause license - see COPYING.