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

74 Commits

Author SHA1 Message Date
Lord-Valen
402ab8e508 ♻️ env Rm devos lock file 2022-11-12 06:02:28 -05:00
Lord-Valen
6fc11c3e33 ♻️ env Readd nix-index override 2022-11-12 06:02:28 -05:00
Lord-Valen
5d159417c6 💎 style Format files 2022-11-12 06:02:28 -05:00
Lord-Valen
4b897e0639 ♻️ env Add other formatters 2022-11-12 06:02:28 -05:00
Lord-Valen
68dd6bd83b 🧠 redesign Use treefmt 2022-11-12 06:02:28 -05:00
Parthiv Seetharaman
c187286ddc Switch to alejandra for formatting 2022-11-12 06:02:28 -05:00
Lord-Valen
226942bb79
🧠 redesign Rm tempfix 2022-11-04 15:15:04 -04:00
Lord-Valen
aa7dc0e6c3
💡 refactor Check exit code directly
Eliminated the redundant check for the exit code of
`editorconfig-checker`. This way is more explicit and idiomatic.

https://github.com/koalaman/shellcheck/wiki/SC2181
2022-11-04 15:02:10 -04:00
Lord-Valen
f8ec6efba4
💡 refactor Improved flake-compat
Get the rev from the flake.lock file. Shouldn't be an issue for
first time users as the guide instructs users to generate a lock
file. `builtins.file` was used in accordance with nix.dev
reccommendations.

https://nix.dev/anti-patterns/language#reproducibility-referencing-top-level-directory-with
2022-11-04 14:55:48 -04:00
GTrunSec
24cb8eb86d
add flake-utils-plus patch 2022-08-03 14:28:41 -07:00
Chris Montgomery
c55f079dfa
darwin: add the darwin-only mas package to an example config 2022-08-03 12:34:03 -04:00
Andrew Marshall
dd51f64bc5 devos: Fix editorconfig Git hook when no files are changed
It is possible to make a commit with no files, e.g. with `--allow-empty`
or `--only` flags to `git-commit`. Previously, this hook would hang
indefinitely in those cases as `editorconfig-checker` with no file
arguments will read from stdin.
2022-07-21 09:12:06 -04:00
Andrew Marshall
34cb98601d devos: Check array length, rather than contents 2022-07-21 09:11:32 -04:00
chris montgomery
c134e7cd2c
Merge branch 'main' into fix-starship-toml 2022-07-10 18:26:35 -04:00
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
sohalt
0b1c58d636 Fix starship.toml
the docker key got renamed
2022-05-16 17:57:03 +02: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
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
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
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
a304ae0838
groupByConfig: add darwin host 2022-04-24 12:27:21 -04:00
Parthiv Seetharaman
9ffc49fed7 Use nixos-* not release-* 2022-04-05 11:56:20 -07:00
Parthiv Seetharaman
b5fac9c7fc examples/devos: remove bud get 2022-04-04 21:43:46 -05:00
Parthiv Seetharaman
51d8ca3fe0 Remove customBuilds, nixos-generate has --flake 2022-04-01 15:52:56 -07:00
Parthiv Seetharaman
ef92bc3c73 Merge devos docs and README into top-level 2022-02-26 12:20:58 -08: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
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
Parthiv Seetharaman
be4826d0b6 update downstream example/test 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
teutat3s
b824eb5e5d examples: fix digga path 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
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
Parthiv Seetharaman
0014c5d509 rename current modules -> exportedModules
and externalModules -> modules
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
a4f30d1c54 bump: some things, but not all (hehehehe) - find out why? 2022-02-23 15:23:14 -08:00