1
1
mirror of https://github.com/divnix/digga.git synced 2024-12-23 08:02:21 +03:00
Commit Graph

68 Commits

Author SHA1 Message Date
Parthiv Seetharaman
1072583dbe fix onboarding process for pulling template 2022-04-04 21:43:46 -05:00
Chris Montgomery
2fbffc323c devshell: revert subflake changes
This reverts several commits on `main`:

- 5b33c4baef
- 85496bd4de
- 94cc51e2b7
- 75c0f266f4
- 9da3840a6f
2022-03-31 10:07:34 -07:00
David Arnold
5b33c4baef
imp: separate devshell into subflake (don't dirty top-level flake inputs) 2022-03-23 16:43:09 -05:00
Chris Montgomery
7597ce22bf
fix: use gnu sed in shell tests for cross-platform compatibility
Darwin's use of BSD `sed` breaks here because BSD `sed` has a different
argument signature.
2022-03-05 12:18:48 -05:00
Parthiv Seetharaman
d17be3c12b Cleanup how polyfill works for digga-use outputs 2022-02-26 12:15:37 -08:00
Parthiv Seetharaman
38b73dddd2 examples/downstream -> examples/devos
no need for submodules either
2022-02-23 16:08:11 -08:00
Timothy DeHerrera
1b9dad8e61 nix: remove ca-references feature flag
This experimental feature has been removed from Nix in unstable
versions recently, and with this set, it now pops up an unsupressable
warning message. Not so bad on its own, but when using <kbd>Tab</kbd>
completion it corrupts the output.
2022-02-23 15:23:14 -08:00
David Arnold
cc6836d3e3 revert: 21.11 does still call nix2.4 unstable
- For "political" reasons: https://github.com/NixOS/nixpkgs/pull/147511
2022-02-23 15:23:14 -08:00
teutat3s
8019c64bd8 chore: remove unused nix-patched overlay 2022-02-23 15:23:14 -08:00
teutat3s
4f88a62f14 chore: update inputs, switch early to nixStable
2.4 from nixos-unstable, please read

https://discourse.nixos.org/t/nix-2-4-released/15822
2022-02-23 15:23:14 -08:00
GTrunSec
c786add3d1 chore: bumpup devshell 2022-02-23 15:23:14 -08:00
David Arnold
ca29d6d212 fix: follows patch & ship own bleeding edge nix version
(to prevent PR drift issues a little better)
2022-02-23 15:23:14 -08:00
David Arnold
e5776ce9a1 fix: check wrapper 2022-02-23 15:23:14 -08:00
David Arnold
27c4a06f29 fix: local tests
when substitutin paths in submodule tests, we need to use absolute
paths to not violate the submodule git boundary through the use of
relative paths
2022-02-23 15:23:14 -08:00
David Arnold
13d6f8590f fix: boostrap iso module 2022-02-23 15:23:14 -08:00
David Arnold
fee8829dd7 docs: add general docs (w/o library reference)
library reference expected to come as soon as flake-utils-plus has
the corresponding implementation.
2022-02-23 15:23:14 -08:00
David Arnold
2fc56f4dd6 imp: add e2e tests 2022-02-23 15:23:14 -08:00
David Arnold
a253fda655 ref: reorganise exported confenience modules & overlays 2022-02-23 15:23:14 -08:00
David Arnold
b90ad83d83 satisfy pre-commit hook (editorconfig / format) 2022-02-23 15:23:14 -08:00
David Arnold
5eb849f0f6 nixConfig: setup the nix configuration
Users may not have setup their nix correctly. This ensures they have the
proper features and caches setup when they use this repo.

We currently have not entire clarity wether all `nixConig` flake options
work. At some point in time `nix` support was limited.

Therefore, we implement an NIX_CONFIG fallback (at least) in the devshell

supersedes #69
2022-02-23 15:23:14 -08:00
David Arnold
4a4a6ee1c1 imp: add proper nix patching
It is very likely that some digga functionality requires patches to nix

Create a place for patches that mimicks the way how they could be
applied once `inputs.<name>.patches` of the
UFR (Unofficial Flakes Roadmap) is implemented.

Also showcase how `nixConfig` can add extra feature flags (without
overriding the patched-in ones).
2022-02-23 15:23:14 -08:00
David Arnold
d64f95fb28 test: add hm only config 2022-02-23 15:23:14 -08:00
David Arnold
667be56cf4 fix: work arround path:../../ & input.parent error
This error is introduced via https://github.com/NixOS/nix/pull/4641

Proper analysis / evlt. fix is pending.
2022-02-23 15:23:14 -08:00
David Arnold
4bb01ba900 fix: add the entirety of nix#4641 patch
Previously, a specific commit was references, while the patch has +-
evolved into its final shape, which we want to capture here.
2022-02-23 15:23:14 -08:00
David Arnold
a58be6f842 fix: have devshell respect it's loaded nix version 2022-02-23 15:23:14 -08:00
David Arnold
466ea26553 imp: checks pass --show-trace flags 2022-02-23 15:23:14 -08:00
David Arnold
4fe2f9b6ca fix: check-all 2022-02-23 15:23:14 -08:00
David Arnold
67df251929 ref: add proper downstream testing 2022-02-23 15:23:14 -08:00
David Arnold
defb97a834 fmt 2022-02-23 15:23:14 -08:00
David Arnold
25bf8eefe2 ref: auxiliaries (checks, jobs, devshell)
Includes nix patch: https://github.com/NixOS/nix/pull/4641
2022-02-23 15:23:14 -08:00
Parthiv Seetharaman
46fe74647e tree: move everything into examples/devos 2022-02-23 15:21:28 -08:00
Timothy DeHerrera
127cb25bd1
lib: move compat to lib 2021-04-18 20:51:47 -06: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
5558959869
Merge pull request #81 from nrdxp/flk-up
shell: add `flk up` command
2021-01-11 18:01:24 -07:00
David Arnold
176bdcf34b
Fix realod
better fix for #75
2021-01-11 19:36:48 -05:00
Timothy DeHerrera
620849bcf0
shell: namespace flk up
Namespace and stage generated files so that the user can build it right
away.
2021-01-11 16:21:40 -07:00
David Arnold
89a48870b1
Shell: pass flags to iso build
like --show-trace
2021-01-11 17:34:46 -05:00
Timothy DeHerrera
e33f53ff2e
shell: add flk up command
Automatically generate a configuration for your current system using
nixos-generate-config, placed in the `up` directory. A file is added in
hosts/up-$(hostname).nix importing said configuration.
2021-01-11 13:15:55 -07:00
Timothy DeHerrera
6d96a5888f
don't be fancy 2020-12-31 12:41:01 -07:00
Timothy DeHerrera
a0b9f9ffe6
hooks: declare nixpkgs-fmt pre-commit hook 2020-12-30 01:47:42 -07:00
Timothy DeHerrera
37d40e0cfe
shell: add command descriptions 2020-12-29 01:17:36 -07:00
Timothy DeHerrera
ad4bbdd398
shell: fix flk command 2020-12-29 00:36:44 -07:00
Timothy DeHerrera
893e09278b
shell: switch to using mkDevShell 2020-12-28 23:12:27 -07:00
Timothy DeHerrera
e7c0700959
factor out a generic fetch from nixpkgs-compat
Create fetch function which takes a valid flake input, and calls
fetchTarball with the revision and hash information from the flake.lock.

Useful for pulling the exact revision of flake inputs from not flake
expressions, such as those in shell.nix.
2020-12-28 23:08:11 -07:00
Timothy DeHerrera
11f085e78c
shell: pull in more dependencies
* Pull recent enough versions on nixos-(rebuild|install) to ensure
  compatibility with flakes.
* Add grip for viewing changes to README.md locally
2020-12-28 21:58:23 -07:00
Timothy DeHerrera
5f7af10bae
shell: add a nixpkgs-compat file
We are now able to pull in the same revision of nixpkgs as listed in
the lock file.
2020-12-27 00:40:12 -07:00
Timothy DeHerrera
94de0921e6
shell: rename rebuild to flk 2020-12-25 22:14:56 -07:00
Timothy DeHerrera
2f10157648
shell: silent nix-command check 2020-12-19 18:35:33 -07:00
Timothy DeHerrera
891fd23ec2
shell: for zsh users provide useful competion
Default nix completions fail with the new nix-command interface, at
least for users of zsh and direnv, this can be avoided on first startup.
2020-12-19 18:13:04 -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