rename plusultra to metacfg

Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
This commit is contained in:
Harald Hoyer 2024-03-20 08:58:05 +01:00
parent b22607a4df
commit 04f08d679e
48 changed files with 149 additions and 149 deletions

View file

@ -1,16 +1,16 @@
{ options, config, lib, pkgs, ... }:
with lib;
with lib.plusultra;
let cfg = config.plusultra.tools.direnv;
with lib.metacfg;
let cfg = config.metacfg.tools.direnv;
in
{
options.plusultra.tools.direnv = with types; {
options.metacfg.tools.direnv = with types; {
enable = mkBoolOpt false "Whether or not to enable direnv.";
};
config = mkIf cfg.enable {
plusultra.home.extraOptions = {
metacfg.home.extraOptions = {
programs.direnv = {
enable = true;
nix-direnv = enabled;

View file

@ -1,14 +1,14 @@
{ options, config, pkgs, lib, ... }:
with lib;
with lib.plusultra;
with lib.metacfg;
let
cfg = config.plusultra.tools.git;
gpg = config.plusultra.security.gpg;
user = config.plusultra.user;
cfg = config.metacfg.tools.git;
gpg = config.metacfg.security.gpg;
user = config.metacfg.user;
in
{
options.plusultra.tools.git = with types; {
options.metacfg.tools.git = with types; {
enable = mkBoolOpt false "Whether or not to install and configure git.";
userName = mkOpt types.str user.fullName "The name to configure git with.";
userEmail = mkOpt types.str user.email "The email to configure git with.";
@ -19,7 +19,7 @@ in
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [ git ];
plusultra.home.extraOptions = {
metacfg.home.extraOptions = {
programs.git = {
enable = true;
inherit (cfg) userName userEmail;