Commit Graph

13 Commits (main)

Author SHA1 Message Date
teutat3s d85b48d191
nix-direnv: use flake-aware version 2.0.0 2022-04-26 11:36:40 +02:00
teutat3s 3e94c0d9f4
chore: fix direnv auto reload 2022-04-03 18:40:07 +02:00
Timothy DeHerrera c012f2f4ed treewide cleanups and refactoring for initial tests (#157)
- [x] refactor lib into separate files, similar to NixOS/nixpkgs/lib.
- [x] refactor ci to automatically generate derivations from flake outputs
- [x] remove cluttered indirection statements throughout the codebase
- [x] refactor hosts to allow for upcoming integration tests
- [x] improve ambiguity in the existing docs 
- [x] add [BORS](https://bors.tech) support
- [x] add initial integration test
- [x] write tests documentation
- [x] test lib
- [x] improve version string generation, and do so automatically for pkgs/flake.nix sources

Clean up the codebase as best we can in preparation for #152 and add tests. From now on, all PRs will be merged with BORS.
2021-03-14 07:10:51 +00:00
Timothy DeHerrera 1b80806516
compat: fixes
* fix nixos-option
* use flake-compat for all backward compat concerns
* rebuild devshell after any nix file changes
* reexport system pkgs as legacyPackages
* provide lib flake output
* provide flake lib to nixos configs via `lib.flk`
* clean up flake.nix
2021-01-23 16:45:10 -07:00
Timothy DeHerrera 3a626b6cf2
shell: don't overwrite nix by default
For users who already have nix-command setup, we don't want to override
the `nix` in their path.
2020-12-19 18:11:21 -07:00
Timothy DeHerrera 70723403cc
direnv: flake based envs are pure by default
We should reflect this in the IN_NIX_SHELL envar, since it doesn't
get set properly otherwise.
2020-12-19 17:49:18 -07:00
Timothy DeHerrera a71bc1e0bf
envrc: flakes should be considered pure 2020-12-14 16:55:02 -07:00
Timothy DeHerrera dde189fb98
envrc: `use flake` if available 2020-08-02 13:30:50 -06:00
Timothy DeHerrera 29f5382539
direnv: add flake profile so shell isn't GC'd 2020-07-20 18:53:21 -06:00
Timothy DeHerrera c9495ea881
direnv: use `nix print-dev-env`
In order to increase determinism in the build environment, we are
having direnv load the shell environment from the flake's `devShell`
output, instead of the traditional `nix-shell` approach. Of course,
one can still enter a `nix-shell` manually on a system without flake
support installed.
2020-07-13 20:00:47 -06:00
Timothy DeHerrera 73d3826d64
Initialize template branch
Remove all idiosyncratic stuff and only leave profiles, modules and pkg
definitions, which are general and applicable for any configuration.
2020-01-03 17:47:17 -07:00
Timothy DeHerrera 92f78f3d93
shell.nix: init minimal 2020-01-01 21:01:58 -07:00
Timothy DeHerrera 1c79781936
niximg: init iso configuration
Easily build the iso using `nix build $ISO` thanks to direnv.
2020-01-01 19:12:59 -07:00