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

1249 Commits

Author SHA1 Message Date
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
David Arnold
27c4a06f29 fix: local tests
when substitutin paths in submodule tests, we need to use absolute
paths to not violate the submodule git boundary through the use of
relative paths
2022-02-23 15:23:14 -08:00
David Arnold
c6e398f534 ref: streamline mkTest signature 2022-02-23 15:23:14 -08:00
David Arnold
791467c536 add: cachix action 2022-02-23 15:23:14 -08:00
David Arnold
4eaabaf70e fix/generators: make deploy-rs work with fqdns, where available
If a host has the domain set, we should teach `deploy-rs` to reach it
over it's fqdn.
2022-02-23 15:23:14 -08:00
David Arnold
09f547f6b6 docs: fix gotcha about default channel
portable home manager configs are derived from the default channel's
`pkgs`, however host speific home manager configs, obviously remain
derived from the respective host's `pkgs`, which can be based on a
different channel.
2022-02-23 15:23:14 -08:00
David Arnold
d3dca3fd8b ref/boostrap-iso: add inputs to iso store contents
There was never an intention to setup the registry with aliases, which
would not avoid a network call ayhow if an input is not specified as an
registry-resolvable input.

At the same time, this clarification also eliniates an error that is
addressed upstream via https://github.com/NixOS/nixpkgs/pull/131814

---

work-around: for spurious reasons w.r.t. functor attrs in module system

Without any obvious reason, the module system appears to substitute
attrs that contain a `__functor` with the value of that functor.
2022-02-23 15:23:14 -08:00
David Arnold
18f0a7c422 fix: don't use new kernel for bootstrap-iso to avoid incompatibilities
for example: error: Package ‘zfs-kernel-2.0.5-5.13.4’ in /nix/store/jbch90yqx6gg1h3fq30jjj2b6h6jfjgs-source/pkgs/os-specific/linux/zfs/default.nix:175 is marked as broken, refusing to evaluate.
2022-02-23 15:23:14 -08:00
David Arnold
5e7747be98 fix: typos in bootstrap ISO image 2022-02-23 15:23:14 -08:00
David Arnold
bbcca38932 fix: bump flake-utils-plus with a regression w.r.t exportModules reverted 2022-02-23 15:23:14 -08:00
David Arnold
285f879014 bump: downstream for tests 2022-02-23 15:23:14 -08:00
David Arnold
6edaccd19e imp/nixos: enable importable access to self & inputs's lib functions
`self` and `inputs` might have library functions or other features that
users want to use within the module system.

To avoid infinite recursion when used within the context of `imports`
statements, make them `sepcialArgs`.
2022-02-23 15:23:14 -08:00
David Arnold
64031cd1d5 imp: pass self & inputs to devshell module eval 2022-02-23 15:23:14 -08:00
David Arnold
cf6f2e1bd9 fix: don't git ignore the mdbook index 2022-02-23 15:23:14 -08:00