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

1297 Commits

Author SHA1 Message Date
Chris Montgomery
65b8e6d361
docs: recommend nixos-generators for iso building 2022-07-09 16:28:59 -04:00
Chris Montgomery
14e7ace5c0
cli: remove bud
This has been planned for some time.

It seems necessary to do so now because after updating inputs to track
NixOS 22.05 channels and releases, checks fail unexpectedly, with the
traces leading back to `bud`. Disabling its modules allows checks to
run successfully.

Rather than figuring out what's going wrong with `bud`, it seems more
appropriate to remove it as planned.
2022-07-09 16:24:47 -04:00
Chris Montgomery
ea2417d68b
devos:devshell: exclude deploy-rs on darwin 2022-07-09 12:51:35 -04:00
Chris Montgomery
446538f029
chore: update inputs to track 22.05 release channels 2022-07-09 11:15:39 -04:00
Parthiv Seetharaman
29bbac0173
Merge pull request #465 from diogox/main
Fix Darwin
2022-05-16 08:12:02 -07:00
Parthiv Seetharaman
333a9db1fe
Merge pull request #466 from bspammer/patch-1
Fix shoulders of giants link in README
2022-05-16 08:11:34 -07:00
Charlie Collard
96d7af9262
Fix shoulders of giants link in README
https://github.com/divnix/digga/pull/435 migrated the README to a new location, but didn't migrate this link.
2022-05-16 15:09:10 +01:00
Diogo Xavier
3a00aee356 Update flake-utils-plus input 2022-05-16 13:55:19 +01:00
Parthiv Seetharaman
0ffa2dff5e
Merge pull request #459 from pgarrison/main
458 Onboarding docs get you to a nix-shell
2022-04-29 01:38:25 -04:00
Chris Montgomery
6a31b63c83
Merge pull request #438 from divnix/darwin-support
Add Support for Darwin/macOS Hosts
2022-04-27 20:24:20 -04:00
Chris Montgomery
580fc57ffa
chore: restore examples digga input branch to main 2022-04-27 20:21:50 -04:00
Chris Montgomery
e6b14d39d6
devos: override nix-index pkg with latest
the version in the 21.11 channel is old and doesn't include support for
`aarch64-darwin`. this version does.
2022-04-27 19:52: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
dd8d0b7927
chore: update inputs 2022-04-27 19:09:44 -04:00
Chris Montgomery
139d6e673d
docs: update api references 2022-04-27 19:09:43 -04:00
pgarrison
7af9b44d8f 458 Onboarding docs get you to a nix-shell 2022-04-24 12:03:41 -07:00
Chris Montgomery
89d9b3ea97
devos: move common overlays to sharedOverlays for fup passthrough 2022-04-24 12:44:21 -04:00
Chris Montgomery
8232e94cb4
chore: docs + formatting 2022-04-24 12:44:15 -04:00
Chris Montgomery
41a49ae3a7
devos: darwin-specific profile customizations 2022-04-24 12:43:55 -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
4438b0f111
devos: devshell: reorder + cleanup 2022-04-24 12:27:29 -04:00
Chris Montgomery
780620d865
devos: devshell: use platform checks from stdenv 2022-04-24 12:27:28 -04:00
Chris Montgomery
68ade1816c
devos: devshell: add required pkgs to scope explicitly
the `with pkgs` statement in `commands` muddies the origin of the
variables used within:

- editors are unable to provide helpful advice about undefined variables
  because `with pkgs` acts as a blanket "anything is possible" signifier
- at a cursory glance, it may not be immediately clear that `system` is
  coming from `pkgs.system`
- `lib` is coming from `pkgs.lib`, but we can use the `lib` module arg.
- some pkgs within `commands` are still referenced with
  `pkgs.<package-name>` unnecessarily
2022-04-24 12:27:27 -04:00
Chris Montgomery
b8d1c7d849
darwin: update mkDeployNodes to account for darwin hosts 2022-04-24 12:27:26 -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
ab39edf087
devshell: use nix 2.7 from unstable channel 2022-04-24 12:27:24 -04:00
Chris Montgomery
1246668e55
devos: add a darwin host + separate os-specific configs 2022-04-24 12:27:23 -04:00
Chris Montgomery
fbfcbd81b5
docs: comments and formatting 2022-04-24 12:27:23 -04:00
Chris Montgomery
0fede41810
feat: pass fup's mergeAny through lib output 2022-04-24 12:27:22 -04:00
Chris Montgomery
a304ae0838
groupByConfig: add darwin host 2022-04-24 12:27:21 -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
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
eceb5335cc
docs: add commands to generate darwin api docs 2022-04-24 12:25:39 -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
Chris Montgomery
71874ad2ee
ci: run on macos-latest 2022-04-20 10:31:15 -04:00
Chris Montgomery
d60f27f697
Merge pull request #452 from divnix/ci-workflow-updates 2022-04-20 10:30:41 -04:00
Chris Montgomery
1c8d14f823
ci: remove extra checkout configuration 2022-04-20 10:20:20 -04:00
Chris Montgomery
58a99d83e1
ci: yaml formatting 2022-04-20 10:06:09 -04:00
Chris Montgomery
6be437e4b7
ci: use github token for authenticated requests in nix config 2022-04-20 09:58:49 -04:00
Chris Montgomery
7cbb59e03f
ci: use install-nix-action@v17 2022-04-20 09:55:28 -04:00