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

135 Commits

Author SHA1 Message Date
Chris Montgomery
34877733b7
hm: set home.stateVersion in configuration or shared modules 2022-08-04 10:27:06 -04:00
GTrunSec
7cb01dcc5f
fmt 2022-08-04 10:27:04 -04:00
GTrunSec
a646bf1f61
Revert "fmt"
This reverts commit 5fce9b8b53c05d2657d7d6819c4dc57e981d8d08.
2022-08-04 10:27:03 -04:00
GTrunSec
e4312e7bc0
fmt 2022-08-04 10:27:02 -04:00
GTrunSec
e3bc2b06e4
Update home-22.05 2022-08-04 10:27:01 -04:00
GTrunSec
01924327b0
get channel from channels 2022-08-03 15:29:31 -07:00
GTrunSec
41f5b9f9c8
use realChannel instead 2022-08-02 22:37:51 -07:00
sohalt
28f0f44ee6 Use nodes.machine instead of deprecated machine in allProfilesTest 2022-07-10 18:45:19 -04:00
Chris Montgomery
8232e94cb4
chore: docs + formatting 2022-04-24 12:44:15 -04:00
Chris Montgomery
b4f74f5ea0
darwin: avoid checking unsupported flake outputs 2022-04-24 12:43:54 -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
b8d1c7d849
darwin: update mkDeployNodes to account for darwin hosts 2022-04-24 12:27:26 -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
2de29e5dee
fix: check for domain attr before use
`networking.domain` is not declared in nix-darwin.
2022-04-24 12:25:46 -04:00
Chris Montgomery
223920bf00
darwin: relocate nixos-only defs out of globalDefaults module
most of the `globalDefaults` module's definitions are not present in
nix-darwin, so they need to move into nixos-specific modules.

at this time, darwin does not yet have its own host-type-specific
defaults module, but there are probably some defs worth adding to such a
module.
2022-04-24 12:25:45 -04:00
Chris Montgomery
1c977a3cb5
refactor: prepare host configs in fup adapter 2022-04-24 12:25:44 -04:00
Chris Montgomery
251395e7bd
darwin: add top-level option for darwin host type 2022-04-24 12:25:42 -04:00
Chris Montgomery
55f1ffa6ea
darwin: agnostic arg name for mkHomeConfigurations 2022-04-24 12:25:41 -04:00
Chris Montgomery
93df57f71f
docs: reword overlays doc to work better with syntax highlighting
the existing string:

```
''\${inputs}`
```

causes issues with syntax highlighting in emacs nix-mode
2022-04-24 12:25:40 -04:00
Chris Montgomery
4b865dd195
inputs: add nix-darwin 2022-04-24 12:25:25 -04:00
Parthiv Seetharaman
51d8ca3fe0 Remove customBuilds, nixos-generate has --flake 2022-04-01 15:52:56 -07:00
Parthiv Seetharaman
d9a0e08149 Remove suites, profiles, and old importer code 2022-02-27 18:27:33 -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
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
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
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
305a296dcf chore: fmt 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
Parthiv Seetharaman
de57ab6967 mkFlake/options: add pathToOr for modules options 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
GTrunSec
b4cb50279a ref: mkDeployNodes host attrs 2022-02-23 15:23:14 -08:00
Timothy DeHerrera
62f5e48398 spelling fixes 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
c6e398f534 ref: streamline mkTest signature 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
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
b089b036c2 fix: mkFlake options & functor 2022-02-23 15:23:14 -08:00
David Arnold
13d6f8590f fix: boostrap iso module 2022-02-23 15:23:14 -08:00
David Arnold
736b50eeb0 fix: api-doc job 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
6562558a4b fix: infinite recursion
specialArgs (even though from submodules) cannot be obtained from 
within the module system
2022-02-23 15:23:14 -08:00
David Arnold
14e36e1133 fix: add inputs back to arguments
Accessing inputs via self seems to be illegal in certain cirumstances
and produces an infinite recursion.
2022-02-23 15:23:14 -08:00