mirror of
				https://github.com/nmasur/dotfiles
				synced 2025-11-04 11:43:16 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			451 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			451 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{
 | 
						|
  config,
 | 
						|
  pkgs,
 | 
						|
  lib,
 | 
						|
  ...
 | 
						|
}:
 | 
						|
 | 
						|
let
 | 
						|
  cfg = config.nmasur.presets.programs.fish-darwin;
 | 
						|
in
 | 
						|
 | 
						|
{
 | 
						|
 | 
						|
  options.nmasur.presets.programs.fish-darwin.enable = lib.mkEnableOption {
 | 
						|
    description = "Fish macOS options";
 | 
						|
    default = config.nmasur.presets.programs.fish && pkgs.stdenv.isDarwin;
 | 
						|
  };
 | 
						|
 | 
						|
  config = lib.mkIf cfg.enable {
 | 
						|
    programs.fish.shellAbbrs = {
 | 
						|
      # Shortcut to edit hosts file
 | 
						|
      hosts = "sudo nvim /etc/hosts";
 | 
						|
    };
 | 
						|
  };
 | 
						|
}
 |