Try and add devshell commands to desktop
This commit is contained in:
		
							parent
							
								
									53da8fcb90
								
							
						
					
					
						commit
						45914cf7ea
					
				
					 1 changed files with 28 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -59,6 +59,7 @@
 | 
			
		|||
    # System tools
 | 
			
		||||
    age
 | 
			
		||||
    alejandra
 | 
			
		||||
    direnv
 | 
			
		||||
    docker
 | 
			
		||||
    docker-compose
 | 
			
		||||
    git-filter-repo
 | 
			
		||||
| 
						 | 
				
			
			@ -89,8 +90,35 @@
 | 
			
		|||
 | 
			
		||||
    # User tools
 | 
			
		||||
    noisetorch
 | 
			
		||||
 | 
			
		||||
    writeShellApplication
 | 
			
		||||
    {
 | 
			
		||||
      name = "dvd";
 | 
			
		||||
 | 
			
		||||
      runtimeInputs = [echo direnv];
 | 
			
		||||
 | 
			
		||||
      text = ''
 | 
			
		||||
              echo "use flake \"github:the-nix-way/dev-templates?dir=$1\"" >> .envrc
 | 
			
		||||
        direnv allow
 | 
			
		||||
      '';
 | 
			
		||||
    }
 | 
			
		||||
    writeShellApplication
 | 
			
		||||
    {
 | 
			
		||||
      name = "dvt";
 | 
			
		||||
 | 
			
		||||
      runtimeInputs = [direnv nix];
 | 
			
		||||
 | 
			
		||||
      text = ''
 | 
			
		||||
                    nix flake init -t "github:the-nix-way/dev-templates#$1"
 | 
			
		||||
        direnv allow
 | 
			
		||||
      '';
 | 
			
		||||
    }
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  programs.direnv = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  # Enable networking
 | 
			
		||||
  networking.networkmanager.enable = true;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue