1
1
mirror of https://github.com/divnix/digga.git synced 2024-12-23 16:11:51 +03:00
Commit Graph

228 Commits

Author SHA1 Message Date
Chris Montgomery
f980b600dd
devshell: pin devshell.inputs.nixpkgs to ours 2022-04-24 12:25:38 -04:00
Chris Montgomery
7ad166f414
inputs: avoid pinning nixpkgs to latest unless absolutely necessary 2022-04-24 12:25:37 -04:00
Chris Montgomery
7b0cff82bd
inputs: add nixpkgs-unstable 2022-04-24 12:25:36 -04:00
Chris Montgomery
4b865dd195
inputs: add nix-darwin 2022-04-24 12:25:25 -04:00
Parthiv Seetharaman
9ffc49fed7 Use nixos-* not release-* 2022-04-05 11:56:20 -07:00
Parthiv Seetharaman
1072583dbe fix onboarding process for pulling template 2022-04-04 21:43:46 -05:00
Parthiv Seetharaman
51d8ca3fe0 Remove customBuilds, nixos-generate has --flake 2022-04-01 15:52:56 -07: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
bors[bot]
1313bfb954
Merge #439
439: Remove suites, profiles, and old importer code r=blaggacao a=Pacman99

I'm keeping the deprecation code for `externalModules` still, since there hasn't been a proper release that included that code.

Co-authored-by: Parthiv Seetharaman <pachum99@myrdd.info>
2022-02-28 13:08:46 +00:00
Parthiv Seetharaman
d9a0e08149 Remove suites, profiles, and old importer code 2022-02-27 18:27:33 -08:00
Parthiv Seetharaman
d17be3c12b Cleanup how polyfill works for digga-use outputs 2022-02-26 12:15:37 -08:00
Parthiv Seetharaman
a792cf9935 export devos template in digga 2022-02-23 18:57:22 -08:00
Parthiv Seetharaman
a966d439da flake: switch to upstream fup
The divnix fork paches don't actually matter because we always pass fup
a channel input. Digga will error out early if there is any issues, so
fup channel input auto-detection never gets called.
2022-02-23 15:23:14 -08:00
Parthiv Seetharaman
ad45b01534 flake: remove anti-corruption layer and use nixlib 2022-02-23 15:23:14 -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
8c7118298d test: fix downstream to compatible synthetic commit
- downstream used `patchedNix`.
- fix hm compatibility
2022-02-23 15:23:14 -08:00
teutat3s
f025da4b55 chore: flakes support arrived in nixStable, no more
patched nix. Leave commented overlay as example
2022-02-23 15:23:14 -08:00
teutat3s
d168926296 Switch to release-21.11 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
32b446f41f chore: bumpup deploy-rs 2022-02-23 15:23:14 -08:00
Parthiv Seetharaman
0014c5d509 rename current modules -> exportedModules
and externalModules -> modules
2022-02-23 15:23:14 -08:00
David Arnold
6267d6abf9 imp: remove default application of profileTests
now that we have per-host custom tests, it does not make sense anymore
to have magic lumpsum tests.

users are encouraged to use the new digga.lib.allProfilesTest standard
test and add it to a host's test like so:

`nixos.<host>.tests = [ digga.lib.allPrefilesTest ];`
2022-02-23 15:23:14 -08:00
David Arnold
b2a78b4f95 fix: use soft-forked fup until upstream can schedule fixes 2022-02-23 15:23:14 -08:00
David Arnold
4536953d24 fix: passed-on fup an fu lib functions 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
b089b036c2 fix: mkFlake options & functor 2022-02-23 15:23:14 -08:00
David Arnold
0c266bafdf ref: adapt to fup upstream refactoring 2022-02-23 15:23:14 -08:00
David Arnold
826620aabb ref: factor mkFlake into its components
this is intended to facilitate further debugging and organize the 
codebase
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
ea183d97fd ref: overlays.patched -> overlays.patchedNix 2022-02-23 15:23:14 -08:00
David Arnold
4b892d6c11 nixConfig: provide a useful nixConfig module
users should decide wether they trust the caches and find those
options useful and hence explicitly activate them in their `devos`
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
01c9e74a05 imp: add portable per aarch users 2022-02-23 15:23:14 -08:00
David Arnold
b1b29239a8 imp: reduce flake inputs footprint and increase conciseness
also produce more cach hits using nixpkgs/release 21.05

fix: #78
2022-02-23 15:23:14 -08:00
David Arnold
a6fadb1288 ref: split digga shell into divnix/flk & divnix/devos/shell (devshell) 2022-02-23 15:23:14 -08:00
David Arnold
0a5325d362 Revert "use deploy's overlay to prevent nixpkgs dep"
This reverts commit 8ae19a33c1c34620ce843e286fa69852db791d5c.

fix: #75

see that issue also for an unresolvable situation induced by this
2022-02-23 15:23:14 -08:00
Pacman99
4e3b9e6f89 use deploy's overlay to prevent nixpkgs dep 2022-02-23 15:23:14 -08:00
David Arnold
8e7239875f remove code that is no more in active use 2022-02-23 15:23:14 -08:00
David Arnold
39b39f1a4f imp: conservative digga lib output
in order to avoid people accidentially depending on some internal API
which we don't explicitly want to support well into version 1.0, hide
those from the output.

Users who still want to use those need to copy them over, instead.

This reduces our API exposure and hopefully will help save maintainer
resources once `digga` completely takes over the world.
2022-02-23 15:23:14 -08:00
David Arnold
91a5764acf ref: tests are becoming a pkgs-less library 2022-02-23 15:23:14 -08:00
David Arnold
7608f9585c ref: we love the unofficial flakes roadmap 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
David Arnold
e5ab98071d add groupByConfig example 2022-02-23 15:23:14 -08:00
Pacman99
979b1bb723 flake: drop follows for nixos-generators input 2022-02-23 15:23:14 -08:00
David Arnold
2eb6f83262 fix: maybImport to also classic imports that peak for defualt.nix
such as `import ./pkgs`, actually loading `./pkgs/default.nix`
2022-02-23 15:23:14 -08:00
Pacman99
00d056f87e modules: add builds for nixos-generators formats 2022-02-23 15:23:14 -08:00
Pacman99
52566f41d8 flake: use fup for non-lib outputs 2022-02-23 15:23:13 -08:00