about summary refs log tree commit diff
path: root/modules/user/aszlig/profiles
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2021-07-06 08:59:40 +0200
committeraszlig <aszlig@nix.build>2021-07-09 17:48:25 +0200
commit709e45c2a8c231201d3f67c6a954021ca2a5f796 (patch)
treed8bc11e17029507d31b4df38b56a65d340669d27 /modules/user/aszlig/profiles
parentff940a210a4676bac305ff0ea8eed5a933d51443 (diff)
modules/git: Switch to RFC-0042
In RFC-0042[1], the structural settings are exposed via a "settings"
attribute, while in our module it's called "config". To make this less
ambiguous (since there is already a "config" attribute passed to
modules) and more in line with best practices, I renamed it accordingly.

Additionally, the configuration file is now generated via *defining*
another (read-only) option, which can be used by other modules to
reference the path. The previous way this has been done was using the
apply attribute to mkOption, which makes it really hard to access the
original attributes for these settings.

[1]: https://git.io/JcXmU

Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'modules/user/aszlig/profiles')
-rw-r--r--modules/user/aszlig/profiles/workstation/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/user/aszlig/profiles/workstation/default.nix b/modules/user/aszlig/profiles/workstation/default.nix
index b8724668..3914ab2d 100644
--- a/modules/user/aszlig/profiles/workstation/default.nix
+++ b/modules/user/aszlig/profiles/workstation/default.nix
@@ -78,7 +78,7 @@ in {
     vuizvui.user.aszlig.programs.mpv.enable = true;
 
     vuizvui.user.aszlig.programs.git.enable = true;
-    vuizvui.user.aszlig.programs.git.config = {
+    vuizvui.user.aszlig.programs.git.settings = {
       color.ui = "auto";
       merge.tool = "vimdiff3";
       user.email = "aszlig@nix.build";