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

210 Commits

Author SHA1 Message Date
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
David Arnold
c43d7641fa imp: make importers truely recursive
- hostnames are construed from a reverse DNS notation of folder names

BREAKING CHANGE (without practical impact):

fup needs to be udpated to parse the reverse DNS notation back into
a hostname DNS label + a DNS domain (to set networking.domain).

However, since until now, no recursive hosts where allowed, this
can be safely done soonishly.
2022-02-23 15:23:13 -08:00
David Arnold
639863bebb ref: drop safeReadDir 2022-02-23 15:23:13 -08:00
Pacman99
271cfd0c18 re-add mkProfileAttrs with a deprecation message 2022-02-23 15:23:13 -08:00
Pacman99
f100c6dcf4 flake: update devshell input for importTOML 2022-02-23 15:23:13 -08:00
Pacman99
237e0bce9b rakeLeaves: create and use standard auto-importer
The function picks up `.nix` files and stops recursing when it hits
a folder with a `default.nix`
This allows it to be used to collect hosts, overlays, and profiles
2022-02-23 15:22:57 -08:00
Pacman99
0bbc1decfe test mkFlake with a full flake similar to devos 2022-02-23 15:22:07 -08:00
Pacman99
8c7da5e5fe flake: use nixpkgs.lib for lib output 2022-02-23 15:22:07 -08:00
Pacman99
a489a954fd Move library code to src/ and cleanup folders 2022-02-23 15:22:07 -08:00
David Arnold
c4da36132c imp: remove importer from top level lib exports
Importers are auxiliary functions of this library. It feels inconsistent when
they have the same visibility of primary (builder) functions.
2022-02-23 15:22:07 -08:00
Pacman99
14c811916c shell: add packages from overlays to devshell
following same logic as exporting packages, but don't filter out inputs
2022-02-23 15:22:07 -08:00
Pacman99
9f0ecf6920 init with devos lib extraction
simple copy of devos library code
2022-02-23 15:22:07 -08:00
Parthiv Seetharaman
46fe74647e tree: move everything into examples/devos 2022-02-23 15:21:28 -08:00
Parthiv Seetharaman
b0aadda88c flake: switch back to serokell deploy input
There is a bug in the input-output-hk fork
2022-02-17 16:22:48 -08:00
Parthiv Seetharaman
87f1d7da18 bud: move to shell and use git clone for get 2021-12-29 15:41:58 -08:00
David Arnold
a319aed9f4 imp: move follows responsibility downstream
- also remove unimportant (small) depenencies from follows management
- so that it is less complex as errors occur, since:
- it seems there are still follows issues present upstream
2021-12-29 14:00:25 -08:00
David Arnold
6151d02b8d rm: use of patched nix for nixos 21.11 enabled digga
- patched nix held the follows patch which is now upstreamed
2021-12-29 14:00:25 -08:00
GTrunSec
950199ef2c
update deploy-rs overlay 2021-09-29 11:45:46 -07:00
Parthiv Seetharaman
e0da74c87c Update flake to use new moddules options 2021-09-27 16:23:06 -07:00