diff options
author | aszlig <aszlig@redmoonstudios.org> | 2015-03-18 03:02:19 +0100 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2015-03-18 03:02:19 +0100 |
commit | 19e3e263610406fca8ca1ed6ecf283deb03d8334 (patch) | |
tree | d786f4f94a4b0d20a75ba2e7d761392378cfe875 /modules/user/aszlig/git/default.nix | |
parent | e91c0b0c2269a8ab0158863dc1c074daf46001f7 (diff) |
modules: Properly namespace module attributes.
So far the modules were still using the old naming scheme of vuizvui.name where name is the corresponding module name directly instead of the category. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'modules/user/aszlig/git/default.nix')
-rw-r--r-- | modules/user/aszlig/git/default.nix | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/user/aszlig/git/default.nix b/modules/user/aszlig/git/default.nix index 65aefb45..0090b617 100644 --- a/modules/user/aszlig/git/default.nix +++ b/modules/user/aszlig/git/default.nix @@ -3,6 +3,8 @@ with lib; let + cfg = config.vuizvui.user.aszlig.programs.git; + genConf = attrs: let escStr = s: "\"${escape [ "\"" "\\" ] s}\""; mkVal = v: if isBool v && v then "true" @@ -30,13 +32,13 @@ let gitPatched = overrideDerivation pkgs.gitFull (git: { makeFlags = let oldFlags = git.makeFlags or []; - newVal = "ETC_GITCONFIG=${config.vuizvui.git.config}"; + newVal = "ETC_GITCONFIG=${cfg.config}"; in if isList oldFlags then oldFlags ++ [ newVal ] else "${oldFlags} ${newVal}"; }); in { - options.vuizvui.git = { + options.vuizvui.user.aszlig.programs.git = { enable = mkEnableOption "Git"; config = mkOption { @@ -62,7 +64,7 @@ in { }; }; - config = mkIf config.vuizvui.git.enable { + config = mkIf cfg.enable { environment.systemPackages = [ gitPatched pkgs.gitAndTools.git-remote-hg |