rename plusultra to metacfg
Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
This commit is contained in:
		
							parent
							
								
									b22607a4df
								
							
						
					
					
						commit
						04f08d679e
					
				
					 48 changed files with 149 additions and 149 deletions
				
			
		| 
						 | 
				
			
			@ -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;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue