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

1222 Commits

Author SHA1 Message Date
Chris Montgomery
091409e44a
docs: add dotfield repo to "in the wild" 2022-02-28 11:58:46 -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
Chris Montgomery
7ed798faee
docs: fix some broken links in readme 2022-02-28 00:53:36 -05:00
Parthiv Seetharaman
d9a0e08149 Remove suites, profiles, and old importer code 2022-02-27 18:27:33 -08:00
bors[bot]
13a518bf14
Merge #435
435: Merge devos docs and README into top-level r=blaggacao a=Pacman99

I think some more work needs to be done to get the docs to flow better, but for now this puts everything in one place so we have a starting point to improve everything.

The new readme is a mix of what I thought were the best parts of both readmes.

Co-authored-by: Parthiv Seetharaman <pachum99@myrdd.info>
2022-02-27 01:49:39 +00:00
bors[bot]
d8a0f2d63c
Merge #433
433: Cleanup how polyfill works for digga-use outputs r=blaggacao a=Pacman99



Co-authored-by: Parthiv Seetharaman <pachum99@myrdd.info>
2022-02-26 20:32:38 +00:00
Parthiv Seetharaman
ef92bc3c73 Merge devos docs and README into top-level 2022-02-26 12:20:58 -08:00
Parthiv Seetharaman
d17be3c12b Cleanup how polyfill works for digga-use outputs 2022-02-26 12:15:37 -08:00
bors[bot]
8a77ad799f
Merge #431
431: Make this repository digga r=Pacman99 a=Pacman99

closes: #430

This is just some git hacking to preserve both project's commit histories.

Commands that I ran:
```sh
git remote add digga git@github.com:divnix/digga
git checkout -b digga-main digga/main
git checkout -b merge-digga upstream/main
mkdir ../devos
mv * .editorconfig .envrc .gitignore ../devos/
mkdir examples
mv ../devos examples/
git add . && git commit -m "tree: move everything into examples/devos"
git checkout digga-main
git rebase merge-digga # there were 3 merge conflicts with src/pkgs-lib/shell, not sure why but that file has been deleted so I just delt with them
git checkout merge-digga
git merge digga-main --ff-only
git push upstream merge-digga
```
There are a lot of changes, so it'll be easier to review what exactly I did with git to get it this way.

The only actual changes I personally made:
 - removed .gitmodules and downstream submodule
 - move devos into examples/devos
 - removed bud template from devos and added `devos` template to digga

This doesn't cover devos docs, I think we will need a separate effort to merge devos docs into digga docs. Probably as a digga usage section or something. For now devos docs are just sitting in `examples/devos`.

This PR should theoretically have the same amount of commits being added as the number of commits in digga itself. I think it ended up being around 50 less because bors commits aren't included for some reason.

Co-authored-by: Parthiv Seetharaman <pachum99@myrdd.info>
Co-authored-by: Pacman99 <pachum99@gmail.com>
Co-authored-by: David Arnold <dar@xoe.solutions>
Co-authored-by: Pacman99 <pachum99@myrdd.info>
Co-authored-by: Dusk Banks <me@bb010g.com>
Co-authored-by: Pacman99 <Pacman99@users.noreply.github.com>
2022-02-26 07:17:10 +00:00
Parthiv Seetharaman
a792cf9935 export devos template in digga 2022-02-23 18:57:22 -08:00
Parthiv Seetharaman
38b73dddd2 examples/downstream -> examples/devos
no need for submodules either
2022-02-23 16:08:11 -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
dcf744906f mkFlake: replace config.self -> self
config.self seems to cause infinite recursion when using nix-shell in a
non-git repository
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
Parthiv Seetharaman
38b9607613 customBuilds: use mkDefault for freeform type 2022-02-23 15:23:14 -08:00
GTrunSec
97c4ffb426 remove vm of nixos-generators.nixosModules on 22.0
5, fix #123
2022-02-23 15:23:14 -08:00
Matt Schreiber
61828b5075 fix: module args of home-manager portable configs
Type-check such configs as modules ("moduleType") rather than as
functions evaluating to attribute sets ("functionTo attrs").  This
ensures that they get invoked with all expected module arguments
("pkgs", "lib", etc.).

Update ./examples/hmOnly so that the testuser config references the pkgs
module arg, thus testing that the switch to moduleType works as
intended.

Closes #119
2022-02-23 15:23:14 -08:00
Andrew Marshall
b2e9099753 Add patches options to channels
This is available in underlying flake-utils-plus.
2022-02-23 15:23:14 -08:00
Parthiv Seetharaman
be4826d0b6 update downstream example/test 2022-02-23 15:23:14 -08:00
Timothy DeHerrera
34b01c2d37 update flake-utils-plus fork
FUP was also setting the `ca-references` option, but recently put it
behind a version check to remove it on the newest unstable.
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
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
a100fee8f0 chore: update docs 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
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
b824eb5e5d examples: fix digga path 2022-02-23 15:23:14 -08:00
teutat3s
8c02f77167 gh action: fix non-shallow repository is needed 2022-02-23 15:23:14 -08:00
teutat3s
9df37a42c8 chore: update workflow actions 2022-02-23 15:23:14 -08:00
teutat3s
d168926296 Switch to release-21.11 2022-02-23 15:23:14 -08:00
teutat3s
9912ccb23a chore: bump downstream example 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
Parthiv Seetharaman
84386a2dc0 add self and inputs to hm specialArgs 2022-02-23 15:23:14 -08:00
Parthiv Seetharaman
dcf0cbed36 remove hosts module argument 2022-02-23 15:23:14 -08:00
Lin Yinfeng
83afb8135d Update api reference 2022-02-23 15:23:14 -08:00
Lin Yinfeng
88a34983b7 fix: fix broken overlays on nixos-unstable, close #110
After nixpkgs pr #140284, attrset outputs of functions of type
`anything` are now processed as modules.

This is not the expected behavior for overlays, devshell modules, and
nixos tests. Use new option types instead of `anything`, fixing this
issue.
2022-02-23 15:23:14 -08:00
GTrunSec
32b446f41f chore: bumpup deploy-rs 2022-02-23 15:23:14 -08:00
GTrunSec
305a296dcf chore: fmt 2022-02-23 15:23:14 -08:00
GTrunSec
c786add3d1 chore: bumpup devshell 2022-02-23 15:23:14 -08:00
Parthiv Seetharaman
a1660f4d7b Don't try to display externalModules value in error
Theres no easy way to show a list of modules
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
Anton
58354603ec fix typo in Readme.md 2022-02-23 15:23:14 -08:00
Parthiv Seetharaman
de57ab6967 mkFlake/options: add pathToOr for modules options 2022-02-23 15:23:14 -08:00
David Arnold
0277aed2b9 Revert fup refactor as it triggered mass rebuilds (under investigation) 2022-02-23 15:23:14 -08:00
David Arnold
3585c75eac bump fup + fup fixes 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
35e45d6a0a fix: doc fixes 2022-02-23 15:23:14 -08:00
David Arnold
8a8b658285 bump: nix, use version that includes follows patch 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