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

237 Commits

Author SHA1 Message Date
Chris Montgomery
446538f029
chore: update inputs to track 22.05 release channels 2022-07-09 11:15:39 -04:00
Chris Montgomery
64bd6388fc
darwin: standardize nix-darwin input and nixpkgs-darwin-stable usages
https://github.com/LnL7/nix-darwin/pull/429 was merged recently,
providing the top-level `lib` option
2022-04-27 19:20:09 -04:00
Chris Montgomery
8232e94cb4
chore: docs + formatting 2022-04-24 12:44:15 -04:00
Chris Montgomery
698551e084
feat: add function to filter hosts from an attrset by system 2022-04-24 12:43:50 -04:00
Chris Montgomery
1aa990d2f9
chore: clean up unnecessary args to deprecated.nix
`nixosModules` and `internal-modules` could cause unwanted builds on darwin.
2022-04-24 12:27:25 -04:00
Chris Montgomery
0fede41810
feat: pass fup's mergeAny through lib output 2022-04-24 12:27:22 -04:00
Chris Montgomery
d506813d6a
mkFlake: require unique hostnames across nixos and darwin hosts
while this could be considered a change in digga's api, flake-utils-plus
wouldn't allow duplicate hostnames either, because its `hosts` option
does not separate nixos or darwin hosts -- both live at `hosts.<hostname>`.
2022-04-24 12:26:39 -04:00
Chris Montgomery
dec17c20e1
refactor: isolate exported modules to host-type-specific files
darwin should not export a `bootstrapIso` module, for example, because
this requires building unsupported packages.
2022-04-24 12:25:47 -04:00
Chris Montgomery
1c977a3cb5
refactor: prepare host configs in fup adapter 2022-04-24 12:25:44 -04:00
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