mirror of
				https://github.com/Jokiller230/puzzlevision.git
				synced 2025-11-03 23:28:48 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
	
		
			401 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
	
		
			401 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{
 | 
						|
  lib,
 | 
						|
  namespace,
 | 
						|
  config,
 | 
						|
  pkgs,
 | 
						|
  ...
 | 
						|
}: let
 | 
						|
  inherit (lib) mkEnableOption mkIf;
 | 
						|
  cfg = config.${namespace}.common.shell;
 | 
						|
in {
 | 
						|
  options.${namespace}.common.shell = {
 | 
						|
    enable = mkEnableOption "Modify the standard shell options";
 | 
						|
  };
 | 
						|
 | 
						|
  config = mkIf cfg.enable {
 | 
						|
    environment.shells = with pkgs; [fish];
 | 
						|
    users.defaultUserShell = pkgs.fish;
 | 
						|
    programs.fish.enable = true;
 | 
						|
  };
 | 
						|
}
 |