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

1312 Commits

Author SHA1 Message Date
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
David Arnold
a4f30d1c54 bump: some things, but not all (hehehehe) - find out why? 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
GTrunSec
b4cb50279a ref: mkDeployNodes host attrs 2022-02-23 15:23:14 -08:00
David Arnold
fa15264d48 fix: example / tests 2022-02-23 15:23:14 -08:00
David Arnold
18ea519f0d fix: bootstrap semantics
prior to this commit the bootstrapping iso deactivated _all_ profiles
that were somehow contained in a suite.

that is an error, since it deactivates all profiles, even the most basic
and desired ones.

the impetus had been to prevent unwantes systemd services from launching

however, there seems no reliable approach to achieve that.

the now proposed alternative model is to add a bootsrap host akin to
the followint config:

```nix
# os/hosts/bootstrap.nix
{ profiles, ... }:
{
 imports = [
    profiles.networking
    profiles.users.root
    profiles.users.nixos
  ];
}
```
2022-02-23 15:23:14 -08:00
Timothy DeHerrera
62f5e48398 spelling fixes 2022-02-23 15:23:14 -08:00
David Arnold
7e9b1c57ac fix: bootstrap image naming
transparency.
2022-02-23 15:23:14 -08:00
David Arnold
e5776ce9a1 fix: check wrapper 2022-02-23 15:23:14 -08:00
David Arnold
8a8f92fb42 imp: add per host tests
this allow users to specifiy per hosts tests in the host api container
under `.test`.

test must be an attrs or a function that is invoked as a package and
that returns an attrs which can be consumed by nixos' `mkTest`.

tests must have a name, so that they can be told apart in the
flake's check attribue.
2022-02-23 15:23:14 -08:00
David Arnold
7527aeea89 bump: dowstream test 2022-02-23 15:23:14 -08:00